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

Is there a way to change the RECFM value of PDSE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dave Kartzman

New User


Joined: 14 Aug 2012
Posts: 2
Location: USA

PostPosted: Tue Aug 14, 2012 10:21 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 14, 2012 11:17 pm
Reply with quote

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
View user's profile Send private message
Dave Kartzman

New User


Joined: 14 Aug 2012
Posts: 2
Location: USA

PostPosted: Tue Aug 14, 2012 11:21 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Aug 14, 2012 11:27 pm
Reply with quote

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
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Aug 14, 2012 11:53 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Wed Aug 15, 2012 5:44 pm
Reply with quote

<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
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 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top