Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us