|
View previous topic :: View next topic
|
| Author |
Message |
pnkumar Warnings : 2 New User
Joined: 27 Oct 2005 Posts: 24
|
|
|
|
HI everyone,
I have to change a working storage field name . I need to change it where ever it is present in all the members of the PDS.Can anyone help me how to execute a macro without opening the members of the PDS.
I dont have much idea on macro concepts. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If by "macro" you are referring to an ISPF EDIT macro, then, by definition, a macro can only be executed on a dataset being edited.
If you want to execute an ISPF EDIT macro against each member of an entire PDS, then you'll need to invoke an EDIT session for each member:
Do loop for each member
ISPEXEC EDIT DATASET(thepds(themember)) MACRO(themacro) or
CALL ISPLINK USING EDIT thepds themember themacro ...
End Do loop |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Does your installation have FileAid? If so, this may be done online or in batch.
If you look around in the clist&rexx forum, there are some examples of writing your own code to globally change values in members of a pds. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| The IPOUPDTE utility program also works well for these situations. |
|
| Back to top |
|
 |
|
|