View previous topic :: View next topic
|
Author |
Message |
Sysaron
New User
Joined: 28 Sep 2005 Posts: 55 Location: USA
|
|
|
|
Can anyone please tell me what utility and sysin would be required to change a VB file to a FB file?
I have a filie with:
DCB=(RECFM=VB,LRECL=238,BLKSIZE=242)
and would like to change it to a Fixed block file.
Thank you so much for your advice.
~Sharon |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
Can anyone please tell me what utility and sysin would be required to change a VB file to a FB file? |
Any sort utility - DFSORT or Syncsort installed at your shop will do. The below job could be used to do the conversion. SYSOUT will show the sort product info available in your shop.
Code: |
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... Input fie,VB/LRECL=238
//SORTOUT DD DSN=... Output file,FB/LRECL=234
//SYSIN DD *
OPTION COPY
OUTFIL VTOF,BUILD=(5,234)
/* |
|
|
Back to top |
|
|
Sysaron
New User
Joined: 28 Sep 2005 Posts: 55 Location: USA
|
|
|
|
This worked just GREAT !! |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Sysaron,
If you're using DFSORT, I would suggest going through the DFSORT manuals listed in the IBM manuals section of this forum to get familiarized with the control statements. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sysaron,
For more information, see the "VB to FB conversion" Smart DFSORT Trick at:
Use [URL] BBCode for External Links
You can access all of the DFSORT books and papers from:
Use [URL] BBCode for External Links
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. |
|
Back to top |
|
|
|