How to convert FB to VB file and opposite?
How to convert FB to VB file and opposite?
Hi,
How to convert a FB file to a VB file and reversal? Please guide me.
How to convert a FB file to a VB file and reversal? Please guide me.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: How to convert FB to VB file and opposite?
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.
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: How to convert FB to VB file and opposite?
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
/*
Re: How to convert FB to VB file and opposite?
Thanks Anil. I have used your JCL and it works for me.
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