Page 1 of 1

how Split works

PostPosted: Sun Mar 06, 2011 3:36 pm
by Naagju
How to copy alternate records from an input file intoto ps1 and ps2, suppose the input has 10 records?
Edited to be consistent with the job posted.

//STEPNAME EXEC PGM=SORT
//SORTIN DD DSN=SORTIN.INPUT.FILE.TO.SPLIT,DISP=SHR
//PS1    DD DSN=PS1.FILE,DISP=SHR
//PS2    DD DSN=PS2.FILE,DISP=SHR
//SYSIN DD *
  OUTFIL FNAMES=(PS1,PS2),SPLIT



Regards!!
Naagju.

Re: how Split works

PostPosted: Sun Mar 06, 2011 9:34 pm
by dick scherrer
Hello,

Your post has been edited because it was not workable as posted.

The reply that mentioned a manual has been deleted as it used the wrong "Manual Title".

Suggest you read here (Smart DFSORT Tricks):
ftp://ftp.software.ibm.com/storage/dfso ... rttrck.pdf