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

Copy a VB file to FB.


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

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Mon Feb 16, 2009 3:54 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 16, 2009 4:01 pm
Reply with quote

SORT usually works exceptionally well for this.

Please post your code and error messages from the SORT step.
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Mon Feb 16, 2009 6:19 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 16, 2009 6:25 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Feb 16, 2009 6:29 pm
Reply with quote

Have you looked at the manual?
Look at VTOF or CONVERT can be used with OUTREC or BUILD to convert variable-length input records to fixed-length output records.....
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Mon Feb 16, 2009 7:11 pm
Reply with quote

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 icon_smile.gif .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 16, 2009 8:45 pm
Reply with quote

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 icon_lol.gif
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