VLSCMP

VLSCMP and VLSHRT are the utilities used with VB files. In VB records always add 4 to the starting position. This is to account for the 4-byte RDW. For example, the following INCLUDE statement compares a PD field in the third through fifth data bytes of a VB record to a PD field in the sixth through eighth bytes of a VB record.
INCLUDE COND=(7,3,PD,EQ,10,3,PD)
If you know you have VB records with short compare fields, you can specify the VLSCMP option, if appropriate, to prevent DFSORT from terminating. For example:
OPTION COPY,VLSCMP
INCLUDE COND=(21,8,CH,EQ,C’Type 200′)
VLSCMP tells DFSORT that you want to temporarily replace any missing compare field bytes with binary zeros, thus allowing the short fields to be validly compared (the zeros are not kept for the output records). In this example, records less than 28 bytes are not included because the binary zeros added for the missing bytes in the field prevent it from being equal to ‘Type 200’. Another way you can prevent DFSORT from terminating for VB records with short compare fields, if appropriate, is by specifying the VLSHRT option. For example:
OPTION COPY,VLSHRT
INCLUDE COND=(21,8,CH,EQ,C’Type 200′)
VLSHRT tells DFSORT to treat any comparison involving a short field as false. In this example, any records less than 28 bytes are not included.
Note: When NOVLSCMP and NOVLSHRT are in effect, DFSORT terminates if it finds a short compare field in any VB record.

Read JCL blogs  : Click Here
SYNCSORT Manual :
Click Here
Scroll to Top