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
 
Copy a VB file to FB.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy a VB file to FB.
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 16, 2009 4:01 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 16, 2009 6:25 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Feb 16, 2009 6:29 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 16, 2009 8:45 pm    Post subject:
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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