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: 10872
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: 10872
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top