IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Utility to change VB file to FB file??


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 55
Location: USA

PostPosted: Tue Dec 02, 2008 6:08 am
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Dec 02, 2008 6:45 am
Reply with quote

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
View user's profile Send private message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 55
Location: USA

PostPosted: Tue Dec 02, 2008 7:07 am
Reply with quote

This worked just GREAT !! icon_biggrin.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Dec 02, 2008 7:17 am
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Dec 02, 2008 9:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top