View previous topic :: View next topic
|
Author |
Message |
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
Hi all,
I want to copy a VB file with LRECL=24 into a FB file LRECL=80. i tried with IDCAMS,IEBGENR,SORT but it failed. Is there any other utility or jcl to copy a VB file into FB file.
thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
SORT usually works exceptionally well for this.
Please post your code and error messages from the SORT step. |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
i just used SORT FIELDS=COPY with input beign the VB file and the output file i have defined as FB and LRECL=80
Code: |
//SYSIN DD *
SORT FIELDS=COPY
/*
|
let me know if i need to include any.
thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That's a start, but you need to specify that that you are converting from one RECFM to another.
Try this simple little code (DFSORT) but should work for either DFSORT or SYNCSORT - I think.
Code: |
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,VTOF,
OUTREC=(5,24,80:X)
|
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
I actually got the result using FILEAID thru jcl. Sorry i did not refer the DFSORT manual. But there is a small mistake by expat (see the outrec field)
Code: |
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOUT,VTOF,
OUTREC=(5,20,80:X)
|
Thanks everyone for your help and manual . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
arvind.m wrote: |
But there is a small mistake by expat (see the outrec field) |
Naah, just checking to see if you were on the ball or not |
|
Back to top |
|
|
|