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
 

 

Multigen/SYNCSORT to divide a file into 6 files?

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

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Feb 15, 2007 1:47 pm    Post subject: Multigen/SYNCSORT to divide a file into 6 files?
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 1:52 pm    Post subject:
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
Currently Banned

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Feb 15, 2007 2:00 pm    Post subject: reply..
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: 1187
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 2:02 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Feb 15, 2007 2:33 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Thu Feb 15, 2007 2:35 pm    Post subject:
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    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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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