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

SYNCSORT split based on count


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 496
Location: USA

PostPosted: Tue Jan 13, 2009 2:20 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
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