Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

converting RECFM=U file to VB or FB file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kenshin

New User


Joined: 02 Aug 2014
Posts: 16
Location: Saint Paul , USA

PostPosted: Tue Oct 20, 2015 12:06 am    Post subject: converting RECFM=U file to VB or FB file
Reply with quote

Hi All,

Is there any Utility which can convert Undefined file to VB / FB file?

I have a RECFM=U file which needs conversion..

I tried using IEBGENER,IDCAMS but it didnt work out.

Could you please provide me sample code which can to this operation...

Thanks

Sumedh
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Tue Oct 20, 2015 12:22 am    Post subject:
Reply with quote

most of the time Format=U files are load modules. why do you want to modify, it will be waste of space for FB file?

However, IDCAMS REPRO should work.
Quote:

tried using IEBGENER,IDCAMS but it didnt work out.


Show us the error and JCL. what is output of below piece, try?

Code:
//STEP001    EXEC PGM=IEBGENER,REGION=6M
//SYSIN    DD   DUMMY
//SYSPRINT DD   SYSOUT=*
//SYSUT1   DD   DISP=SHR,DSN=TYPE=U file
//SYSUT2   DD   DISP=(,CATLG),DSN=TYPE=V file,
//         DCB=(DSORG=PS,RECFM=V,BLKSIZE=27998),
//         UNIT=SYSDA,
//         SPACE=(CYL,(1,1))
Back to top
View user's profile Send private message
kenshin

New User


Joined: 02 Aug 2014
Posts: 16
Location: Saint Paul , USA

PostPosted: Tue Oct 20, 2015 12:56 am    Post subject:
Reply with quote

Hi Rohit ,

U file is a log file it doesn't have loads in it,I am very well aware that lot of space would be wasted but I am ok with it..

Right now ,I am out of office so do not have access to Mainframes.
I tried same code which you have mentioned and I got below error

IEB311I CONFLICTING DCB PARAMETERS

Can U file be converted into FB and then FB can be changed to VB ..would it be easy?

Please suggest!!
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Oct 20, 2015 1:34 am    Post subject:
Reply with quote

Have you tried using IDCAMS instead?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Tue Oct 20, 2015 2:00 am    Post subject:
Reply with quote

kenshin, I could able to run this successfully, what are the errors at your end?

Code:
//STEP002    EXEC PGM=IDCAMS                           
//SYSPRINT DD  SYSOUT=*                                 
//SYSLIST  DD  SYSOUT=*                                 
//OLD      DD  DSN=???,DISP=SHR               
//NEW      DD  DSN=??,                 
//             DISP=(NEW,CATLG,DELETE),                 
//             VOL=SER=?,                         
//             UNIT=SYSDA,SPACE=(CYL,(10,10),RLSE),     
//             DCB=(LRECL=5000,RECFM=VB,BLKSIZE=27998)
//SYSIN DD *                                           
 REPRO -                                               
 INFILE(OLD) -                                         
 OUTFILE(NEW)                                           
/*         
Back to top
View user's profile Send private message
kenshin

New User


Joined: 02 Aug 2014
Posts: 16
Location: Saint Paul , USA

PostPosted: Tue Oct 20, 2015 2:33 am    Post subject:
Reply with quote

yes I tried...but didn't work out..

I will try again tomorrow.. Do we require to give BLKSIZE..?

I think it should work without giving it?

Tomorrow, I will share the errors encountered .

Rohit ,Thanks for taking efforts and helping me out .

------------------------------------------
Sumedh
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 461
Location: The Universe

PostPosted: Tue Oct 20, 2015 11:42 am    Post subject:
Reply with quote

Just a couple of thoughts -

Set the LRECL of the V format data set to the input BLKSIZE + 4. The BLKSIZE of a U format data set defines the size of the largest possible record. The LRECL of a V format data set defines the largest possible record. The +4 fudge factor is the size of the RDW (Record Descriptor Word) all V format logical records must have.

Do we require to give BLKSIZE? Well, maybe. You want to provide a BLKSIZE if the LRECL is greater than System determined BLKSIZE, which will most likely be 27998.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us