IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Selecting Every 1000. record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Tue Dec 29, 2009 8:15 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Tue Dec 29, 2009 8:43 pm
Reply with quote

see if this can help
ibmmainframes.com/viewtopic.php?t=43126&highlight=sort+sample
Back to top
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Tue Dec 29, 2009 8:56 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Tue Dec 29, 2009 8:58 pm
Reply with quote

glad to hear it icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To Discard record with 0 entry if Dup... SYNCSORT 7
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Write record twice based on condition... SYNCSORT 7
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Sort to insert record in an empty file. DFSORT/ICETOOL 5
Search our Forums:


Back to Top