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
 

 

SYNCSORT split based on count

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Hcarthik

New User


Joined: 19 Aug 2008
Posts: 5
Location: Cochin

PostPosted: Wed Jan 07, 2009 8:06 pm    Post subject: SYNCSORT split based on count
Reply with quote

I need to split a file into two. The first file, needs to be written with a count of 10,000 records and the remaining in the second file.
Back to top
View user's profile Send private message

Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Jan 13, 2009 2:20 am    Post subject:
Reply with quote

Give this a try:
Code:
//SORT1  EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=input.file,...
//SORTOF01 DD DSN=output1,...
//SORTOF02 DD DSN=output2,...
//SYSIN    DD *               
   SORT FIELDS=COPY         
   OUTFIL FILES=01,ENDREC=10000
   OUTFIL FILES=02,SAVE   
Back to top
View user's profile Send private message
Hcarthik

New User


Joined: 19 Aug 2008
Posts: 5
Location: Cochin

PostPosted: Tue Jan 13, 2009 10:18 am    Post subject: Reply to: SYNCSORT split based on count
Reply with quote

Thank you!
Its working
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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