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
 
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: 1190
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: 1190
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: 1190
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am

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