View previous topic :: View next topic
|
Author |
Message |
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Hi,
Assuming we have flat file with 100 records......
My requirement is to copy records positioned in odd # (like 1,3, etc...) into one file and even positioned records into another file using SORT tool.
Please note, no column/variable in the record has these values.
Thanks in advance!!!!
Regards,
Murali Mohan K |
|
Back to top |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
check out the following jcl.....
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//ODD DD DSN=... output file1 (odd records)
//EVEN DD DSN=... output file2 (even records)
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(ODD,EVEN),SPLIT
/*
|
Hope this helps......
Regards,
jai |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Thanks for your help!!!! |
|
Back to top |
|
|
|