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

converting RECFM=U file to VB or FB file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Tue Oct 20, 2015 12:22 am
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
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: 1788
Location: Bloomington, IL

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

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

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Tue Oct 20, 2015 2:00 am
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
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 Member


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

PostPosted: Tue Oct 20, 2015 11:42 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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