View previous topic :: View next topic
|
Author |
Message |
Hcarthik
New User
Joined: 19 Aug 2008 Posts: 5 Location: Cochin
|
|
|
|
I need to split a file into two. The first file, needs to be written with a count of 10,000 records and the remaining in the second file. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Give this a try:
Code: |
//SORT1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=input.file,...
//SORTOF01 DD DSN=output1,...
//SORTOF02 DD DSN=output2,...
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=01,ENDREC=10000
OUTFIL FILES=02,SAVE
|
|
|
Back to top |
|
|
Hcarthik
New User
Joined: 19 Aug 2008 Posts: 5 Location: Cochin
|
|
|
|
Thank you!
Its working |
|
Back to top |
|
|
|