View previous topic :: View next topic
|
Author |
Message |
kenshin
New User
Joined: 02 Aug 2014 Posts: 16 Location: Saint Paul , USA
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
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 |
|
|
kenshin
New User
Joined: 02 Aug 2014 Posts: 16 Location: Saint Paul , USA
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Have you tried using IDCAMS instead? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
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 |
|
|
kenshin
New User
Joined: 02 Aug 2014 Posts: 16 Location: Saint Paul , USA
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
|