Variable length records are preceded by the RDW, which consists of 2 bytes containing the length of the record and 2 bytes of filler, also refered to as llbb. Incidently, variable records that are blocked have their own length descriptor refered to as LLBB...
Joined: 14 Oct 2005 Posts: 1187 Location: Bangalore,India
A data set with RECFM=VB and LRECL=133 is a variable-length (VB) data set with a maximum record length of 133-bytes. For a VB data set, different records can have different lengths. The first four bytes of each record contain the Record Descriptor Word or RDW, and the first two bytes of the RDW contain the length of that record (in binary). The first data byte of a VB record is in position 5, after the 4-byte RDW.
so u should be careful while specifing it in sort card if u want to include record of file where first 2 byte of alphatical data is equal to 02
here 5 is starting position & 2 is offset as u said u want to include those record where first two byte is equal to 02
I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: