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 execute a macro on a complete PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to execute a macro on a complete PDS
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

Moderator Team Head


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

PostPosted: Thu Mar 08, 2007 10:34 pm    Post subject: Re: How to execute a macro on a complete PDS
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

Site Director


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

PostPosted: Thu Mar 08, 2007 10:57 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Mar 09, 2007 1:16 am    Post subject: Re: How to execute a macro on a complete PDS
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm


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