Posted: Thu May 11, 2006 11:09 pm Post subject: Sort var length temp input file to fixed length output file
Hi,
I am getting a hard time sorting variable length input file to a fixed length output file. I know we need to use VTOF parameter but am not able to get it done with.
My input file has space parameters as : (which is created in Step 1)
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Fri May 12, 2006 4:20 am Post subject:
chirag2901,
I don't see where you used the VTOF parameter. Try these control cards. Also you need to consider the RDW in the first 4 bytes. so if you are looking for something on pos 3 then it is actually at pos 7.
Code:
OPTION EQUALS
SORT FIELDS=COPY
INCLUDE COND=(7,7,CH,EQ,C'PRC NUM',OR,7,10,CH,EQ,C'OTHER NODE')
OUTFIL VTOF,OUTREC=(7,33)
Also note that with sort you never have to mention the DCB parameters.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum