View previous topic :: View next topic
|
Author |
Message |
Dave Kartzman
New User
Joined: 14 Aug 2012 Posts: 2 Location: USA
|
|
|
|
I have a number of PDSE libraries that contain compiler listings (133 lrecl, recfm=fb). The carriage control characters are in column 1. I need to change the dataset attributes of these files from RECFM=FB to RECFM=FBA.
I know I can add a DCB=RECFM=FBA to JCL to override the attribute, but it would be easier if I could change the attribute.
The only other option is to rebuild the PDSE libraries and copy the old library to the new one.
Is there a utility or some other process that would allow me to change the RECFM attribute without having to redefine the file?
Thanks in advance...Dave |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
You could rename an old library then copy it to a new library with the old dataset name and new attributes. After a short while (after the new is proved working well), the original could be deleted. |
|
Back to top |
|
|
Dave Kartzman
New User
Joined: 14 Aug 2012 Posts: 2 Location: USA
|
|
|
|
Thanks for responding. That was one of the options I mentioned earlier. It is a very time-consuming option and I want to do that as a last resort. Hopefully, someone has a utility or method to modify it in place...
Dave |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
I don't believe that there is. My shop has a tool that purports to do that...but under the covers it does do a copy, delete, and rename. |
|
Back to top |
|
|
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
You can do it with IDCAMS. All you have to do is REPRO a member to the PDSE with a disp of mod and specify a dcb of recfm=fba. Depending on what version of IDCAMS you have you may get a RC=8 or an ABEND SB14. The member will be empty but the RECFM will be changed
Code: |
//STEP1 EXEC PGM=IDCAMS,REGION=64M
//DD1 DD *
CCCCCCCCC
//DD2 DD DISP=MOD,DCB=(RECFM=FBA),DSN=xxxxxx.TEST(a)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INFILE(DD1) OUTFILE(DD2) |
|
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
<speculation> My understanding is that FB and FBA data sets are physically identical. The only difference is a catalog and/or VTOC attribute that tells z/OS whether the contents of the 1st position of each record is to be treated as carriage control. If this is true, then it may be theoretically possible to zap this attribute without otherwise affecting the file. </speculation>
To do this would no doubt require special skills and security privileges, and would run the risk of corrupting the data set. |
|
Back to top |
|
|
|