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

How to Rename N no members in a pds using FILEAID?


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu May 11, 2006 11:20 am
Reply with quote

Hi,
I heared that it is possible to rename N members of a pds using FILEAID batch JCL.If any one knows the trick please send it will be more useful.
For Example 400 members in a pds should e renamed at one shot.
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Thu May 11, 2006 12:09 pm
Reply with quote

Hi Murali,

As per my knowledge
File-AID accepts only one NEWMEM parameter per DD statement.

So you have to give dd statements as many member you have to rename.
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Thu May 11, 2006 12:21 pm
Reply with quote

Hi Murali,

You are correct you can rename the members in a single shot

Try the below JCL

//COPY EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD SYSOUT=A
//DD01 DD DSN=xxxxx.CNTL,DISP=SHR
//DD01O DD DSN=xxxx.TEST.SORTOUT,DISP=(,CATLG,DELETE),
// UNIT=SYSD@,LABEL=RETPD=90,
// DCB=(BLKSIZE=58200,LRECL=300,RECFM=FB),
// SPACE=(58200,(14000,135,90),RLSE,,ROUND)
//SYSIN DD *
$$DD01 COPY NEWMEMS=GA----P
/*


Working for me....

Rename the member with the name starting grom GA and ending with P
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu May 11, 2006 2:43 pm
Reply with quote

Hi shrivatsa,
I need members should be renamed in the same input pds not in another pds.is there any sysin parameters available?

Murali.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
Search our Forums:

Back to Top