Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Selecting Every 1000. record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Selecting Every 1000. record
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Dec 29, 2009 8:43 pm    Post subject: Reply to: Selecting Every 1000. record
Reply with quote

see if this can help
http://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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Dec 29, 2009 8:58 pm    Post subject: Reply to: Selecting Every 1000. record
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us