lagneshp
New User
Joined: 15 Aug 2009 Posts: 29 Location: Chennai
|
|
|
|
Its Done............. using below code
SORT FIELDS=COPY
OUTREC OVERLAY=(80:SEQNUM,5,ZD)
OUTFIL INCLUDE=(81,4,ZD,EQ,0000,OR,(80,1,ZD,EQ,0,AND,82,3,ZD,EQ,000),
OR,(80,2,ZD,EQ,00,AND,83,2,ZD,EQ,00),OR,(83,2,ZD,EQ,00),OR,
(80,1,ZD,EQ,0,AND,83,2,ZD,EQ,00),OR,(82,3,ZD,EQ,000)) |
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
since you need every 100th record,
just look for the 00 as the last 2 of the 5 char sequence number,
and get rid of the rest of the garbage.
keep in mind, if you have an 80 char record, you want to overlay 81.
according to your OVERLAY statement, your records are 79 or less. |
|