Page 1 of 1
Converting file of RECFM=U to RECFM=FB
Posted: Mon Feb 09, 2009 2:45 pm
Could anyone help me in acheiving this.
I want to copy a file of RECFM=U to RECFM=FB.
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 ,
Posted: Mon Feb 16, 2009 11:02 am
Did you try using IEBGENER?
Posted: Tue May 12, 2009 10:31 am
Thanks a lot for your information.
I used IDCAMS with REPRO command and I'm able to copy the Unformated file to FB.
Posted: Tue May 12, 2009 10:46 am
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
//STEPA EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//OLD DD DSN=I/P file,DISP=SHR
//NEW DD DSN=O/P file,
// DCB=(LRECL=0,RECFM=FB,BLKSIZE=4096), <-- Same as I/P file DCB
//SYSIN DD *
Posted: Tue Dec 29, 2009 8:25 pm
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,
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
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
Posted: Wed Dec 30, 2009 11:00 pm
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?