Page 1 of 1
Converting file of RECFM=U to RECFM=FB
Posted: Mon Feb 09, 2009 2:45 pm
by biswaranjan
Hi,
Could anyone help me in acheiving this.
I want to copy a file of RECFM=U to RECFM=FB.
I/P file:
Organization . . . :,PS
Record format . . . :,U
Record length . . . :,0
Block size . . . . :,4096
O/P file :
Organization . . . :,PS ,
Record format . . . :,FB ,
Record length . . . :,4096 ,
Block size . . . . :,4096 ,
Thanks,
Biswa.
Posted: Mon Feb 16, 2009 11:02 am
by Anuj Dhawan
Hi,
Did you try using IEBGENER?
Posted: Tue May 12, 2009 10:31 am
by biswaranjan
Hi Anju,
Thanks a lot for your information.
I used IDCAMS with REPRO command and I'm able to copy the Unformated file to FB.
Thanks,
Biswa.
Posted: Tue May 12, 2009 10:46 am
by Anuj Dhawan
Glad to hear you could make it work . . .
If you share your solution here, that will help some one later . . .
PS. My name is Anuj and not Anju.
Posted: Tue Dec 29, 2009 6:59 pm
by biswaranjan
//STEPA EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//OLD DD DSN=I/P file,DISP=SHR
//NEW DD DSN=O/P file,
// DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=0,RECFM=FB,BLKSIZE=4096), <-- Same as I/P file DCB
except RECFM
// SPACE=(CYL,(280,100),RLSE)
//SYSIN DD *
REPRO -
INFILE(OLD) -
OUTFILE(NEW) -
SKIP(100) -
COUNT(100)
/*
Posted: Tue Dec 29, 2009 8:25 pm
by Anuj Dhawan
Thanks for keeping us posted with the solution you used. I did not try IDCAMS for this purpose lately, and feeling lazy to get connected to mainframes to test it as 'am not keeping well today. However, copying RECFM=U files works quite well in IEBGENER, for output files of U or V format.You can use below JCL as an example:
Code: Select all
//STEP001 EXEC PGM=IEBGENER,REGION=6M
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=XXXXX.COMPILES.LOADLIB(MEMBER)
//SYSUT2 DD DISP=(,CATLG),DSN=XXXXX.MEMBER.LOADLIB,
// DCB=(DSORG=PS,RECFM=V,BLKSIZE=27998),
// UNIT=SYSDA,
// SPACE=(CYL,(1,1))
Bur I'd like to ask - Why would you want to copy an undefined file to fixed length? That'll waste a lot of space since your fixed record size will have to be equal to the largest possible undefined record size.
Posted: Wed Dec 30, 2009 12:48 pm
by biswaranjan
The aim was to edit the Unformated I/P file as it can't be edited directly.
The approch was to put it in FB format, edit it and put it back to the initial format.
Posted: Wed Dec 30, 2009 3:18 pm
by Anuj Dhawan
Good Lcuk...
Posted: Wed Dec 30, 2009 11:00 pm
by dbzTHEdinosauer
and put it back to the initial format.
most of the time Format=U files are load modules. If you are trying to modify a load module, suggest you research ZAP.
as far as 'putting it back', how are you going to accomplish that?