View previous topic :: View next topic
|
Author |
Message |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
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 |
|
|
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
Is this the same with splitting the file into 6 files with 60 records in it? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
I already pasted the code |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Louielee,
Yeap it will work as bill said.
Bill:thanks |
|
Back to top |
|
|
|