Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is there a way to change the RECFM value of PDSE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Is there a way to change the RECFM value of PDSE
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

Site Director


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

PostPosted: Tue Aug 14, 2012 11:17 pm    Post subject:
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    Post subject:
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: 1770
Location: Bloomington, IL

PostPosted: Tue Aug 14, 2012 11:27 pm    Post subject:
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: 258

PostPosted: Tue Aug 14, 2012 11:53 pm    Post subject:
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: 654
Location: Whitby, ON, Canada

PostPosted: Wed Aug 15, 2012 5:44 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us