vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Thu Apr 26, 2007 1:38 am Post subject: Re: Any option other than INCLUDE |
|
|
You can see the ways of splitting a file in the below smart DFSORT tricks link.
http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
e.g from the above link:
You can split the file based on STARTREC and ENDREC as shown in the example below if you don't want to use INCLUDE.
Code: | //RANGE EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=Y897797.INPUT2,DISP=OLD
//FRONT DD DSN=Y897797.RANGE1,DISP=(NEW,CATLG),
// SPACE=(CYL,(5,5)),UNIT=SYSDA
//MIDDLE DD DSN=Y897797.RANGE2,DISP=(NEW,CATLG),
// SPACE=(CYL,(5,5)),UNIT=SYSDA
//BACK DD DSN=Y897797.RANGE3,DISP=(NEW,CATLG),
// SPACE=(CYL,(5,5)),UNIT=SYSDA
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=FRONT,ENDREC=500
OUTFIL FNAMES=MIDDLE,STARTREC=511,ENDREC=2205
OUTFIL FNAMES=BACK,STARTREC=2206
|
Last edited by vkphani on Thu Apr 26, 2007 1:46 am; edited 2 times in total |
|