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

Multigen/SYNCSORT to divide a file into 6 files?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madlui56

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Feb 15, 2007 1:47 pm
Reply with quote

I just want to inquire if how to divide a file into 6 files with 60 records using syncsort then sortof01..outifil files.. what is the syntax?


This is with IMVS cobol mainframe environment.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Feb 15, 2007 1:51 pm
Reply with quote

You can refer to below url:

http://www.ibmmainframes.com/viewtopic.php?t=17982
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 1:52 pm
Reply with quote

Hi there ,

please find the control card
Code:

SORT FIELDS=COPY                     
OUTFIL FILES=1,ENDREC=10             
OUTFIL FILES=2,STARTREC=11,ENDREC=20 
OUTFIL FILES=2,STARTREC=21,ENDREC=30
OUTFIL FILES=2,STARTREC=31,ENDREC=40
OUTFIL FILES=2,STARTREC=41,ENDREC=50
OUTFIL FILES=2,STARTREC=51,ENDREC=60
Back to top
View user's profile Send private message
madlui56

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Feb 15, 2007 2:00 pm
Reply with quote

Is this the same with splitting the file into 6 files with 60 records in it?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 2:02 pm
Reply with quote

Hi There,

I already pasted the code
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Feb 15, 2007 2:33 pm
Reply with quote

Ekta,

Louielee wanted 6 files with 60 recs each.

Louielee,

Ekta thought you wanted 60 recs divided evenly into 6 files.

And yes the same method with different counts will do what you want.

Bill
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 2:35 pm
Reply with quote

Louielee,

Yeap it will work as bill said.

Bill:thanks
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top