View previous topic :: View next topic
|
Author |
Message |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Hello,
I am using SUBSET option for selecting some data from an input to output,
for example;
Code: |
//SORTST1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=XXX.YYY.ZZZ,DISP=SHR
//OUT DD DSN=XXX.YYY.ZZZ2,DISP=MOD
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) INPUT KEEP RRN(1000) -
RRN( 2000) RRN(3000) RRN(4000) |
But I want to select every 1000. records to output.
(1000. record, 2000. record, 3000. record.....)
is it possible?
Thanks.. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Thanks you enrico-sorichetti,
I have solved it like you recommended.
(Exact code for my requerment)
Code: |
//SORTST1 EXEC PGM=ICEMAN
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=XXX.YYY.ZZZ,DISP=SHR
//SORTOUT DD DSN=XXX.YYY.ZZZ2,DISP=MOD
//SYSIN DD *
OPTION COPY
OUTFIL STARTREC=1000,SAMPLE=1000
/* |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
glad to hear it |
|
Back to top |
|
|
|