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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 237

PostPosted: Thu May 11, 2006 11:20 am    Post subject: How to Rename N no members in a pds using FILEAID?
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: 171
Location: Bangalore

PostPosted: Thu May 11, 2006 12:09 pm    Post subject:
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: 171
Location: Bangalore

PostPosted: Thu May 11, 2006 12:21 pm    Post subject:
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: 237

PostPosted: Thu May 11, 2006 2:43 pm    Post subject: Re: How to Rename N no members in a pds using FILEAID?
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


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