How to convert FB to VB file and opposite?

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Previous topicNext topic

Topic Author
Binamra
Registered Member
Posts: 40
Joined: Mon Jun 17, 2013 10:42 pm
Zodiac: Sagittarius

How to convert FB to VB file and opposite?

Post by Binamra » Wed Apr 02, 2014 4:29 pm

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: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

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

Post by Robert Sample » Wed Apr 02, 2014 5:28 pm

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: 499
Joined: Sun Aug 25, 2013 7:24 pm

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

Post by William Collins » Thu Apr 03, 2014 6:30 pm

Look at CONVERT in your documentation, VTOF, FTOV




Anil
Registered Member
Posts: 56
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

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

Post by Anil » Wed Nov 08, 2017 4:33 pm

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                     
/*




Topic Author
Binamra
Registered Member
Posts: 40
Joined: Mon Jun 17, 2013 10:42 pm
Zodiac: Sagittarius

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

Post by Binamra » Sat Nov 18, 2017 6:19 pm

Thanks Anil. I have used your JCL and it works for me.




Anil
Registered Member
Posts: 56
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

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

Post by Anil » Sat Nov 18, 2017 6:30 pm

:), yes it worked for me too.


Thanks,
Anil

Previous topicNext topic

Return to “SyncSort, SyncTool, SyncGener.”