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

Convert a Fixed Block file into Variable Block File


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bigcoolbudy

New User


Joined: 12 Jun 2006
Posts: 12

PostPosted: Fri Sep 08, 2006 2:43 am
Reply with quote

HI,

I have to convert a Fixed block file - RECFM=FB (record size is 150) into a variable block file - RECFM=VB, Could anyone help me to show the way how i can convert it.

Thanks for your help
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Sep 08, 2006 3:15 am
Reply with quote

Hey Big Cool,

There are more than a couple of ways to accomplish this.

This one works for me.

Code:

//JS00100  EXEC PGM=IDCAMS               
//DDIN     DD DSN=YOUR.PS.FB150,       
//          DISP=SHR                     
//DDOUT    DD DSN=YOUR.PS.VB150,       
//          DISP=(,CATLG,DELETE),       
//          SPACE=(154,(1,1),RLSE),     
//          RECFM=VB,LRECL=154           
//SYSPRINT DD SYSOUT=*                   
//SYSIN DD *                             
  REPRO IFILE(DDIN) OFILE(DDOUT)


Note that the LRECL is 150 + 4 = 154

Dave
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: Fri Sep 08, 2006 3:30 am
Reply with quote

You can use DFSORT's FTOV parameter. For details, see the "FB to VB conversion" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/


Please don't post the same question in two different Forums.
Back to top
View user's profile Send private message
bigcoolbudy

New User


Joined: 12 Jun 2006
Posts: 12

PostPosted: Sat Sep 09, 2006 12:27 am
Reply with quote

Hi DavidatK,

It works fine. Thanks for your prompt reply.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
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 Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top