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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm

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