How to convert FB to VB file and opposite?

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Post Reply
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

How to convert FB to VB file and opposite?

Post by Binamra »

Hi,

How to convert a FB file to a VB file and reversal? Please guide me.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to convert FB to VB file and opposite?

Post by Robert Sample »

Converting fixed length records to variable length records (or the reverse) depends upon the application -- this is not something done for fun. Variable to fixed is easier since shorter records can be padded with spaces to match the length of the longest record.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: How to convert FB to VB file and opposite?

Post by William Collins »

Look at CONVERT in your documentation, VTOF, FTOV
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Re: How to convert FB to VB file and opposite?

Post by Anil »

You can use this JCL:

Code: Select all

//STEP01  EXEC SORT                           
//SORTIN   DD DISP=SHR,                         
//            DSN=INPUT.FILE.FB,DISP=SHR
//SORTOUT  DD DSN=OUTPUT.FILE.VB,DISP=SHR
//            DISP=(,CATLG,DELETE),UNIT=SYSDA,   
//            DCB=(LRECL=??,RECFM=VB)
//*
//SYSIN    DD *                                 
  SORT FIELDS=COPY                               
  OUTFIL FNAMES=SORTOUT,VTOF                     
/*
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

Re: How to convert FB to VB file and opposite?

Post by Binamra »

Thanks Anil. I have used your JCL and it works for me.
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Re: How to convert FB to VB file and opposite?

Post by Anil »

:), yes it worked for me too.
Thanks,
Anil
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SyncSort, SyncTool, SyncGener.”