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

How to execute a macro on a complete PDS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pnkumar
Warnings : 2

New User


Joined: 27 Oct 2005
Posts: 24

PostPosted: Thu Mar 08, 2007 9:28 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 08, 2007 10:34 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Mar 08, 2007 10:57 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Mar 09, 2007 1:16 am
Reply with quote

The IPOUPDTE utility program also works well for these situations.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Make job wait until submitted job is ... JCL & VSAM 4
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 6
No new posts Access to macro definitions PL/I & Assembler 4
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:


Back to Top