View previous topic :: View next topic
|
Author |
Message |
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
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 |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
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 |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
|