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
 

 

applying macro to all the members in a pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Tue Dec 11, 2007 11:57 pm    Post subject: applying macro to all the members in a pds
Reply with quote

Hi,

I want to apply macro to all the members in the pds.

I have this piece of code

Code:
ADDRESS TSO                                           
X = OUTTRAP('VAR.')                               
"LISTDS '"SRCPDS"' MEMBERS"                           
DO I = 7 TO VAR.0                                     
   VAR.I = STRIP(VAR.I)                               
   SRCMEM = VAR.I                                     
   SRCPGM = SRCPDS||"("||SRCMEM||")"                   
"ISPEXEC VIEW DATASET('"SRCPGM"') MACRO(MACRO1)"       
END       


But when i use this code, members will be processed one by one only. I need to press PF3 keys to process members one by one.

Is there anyway by which i can apply macro to all the members in the pds in one shot.

Could anyone please help.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Dec 12, 2007 12:35 am    Post subject:
Reply with quote

At the end of your macro, add ADDRESS ISREDIT END or CANCEL.

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Dec 12, 2007 8:09 pm    Post subject: Reply to: applying macro to all the members in a pds
Reply with quote

take a look at


http://www.ibmmainframes.com/viewtopic.php?t=25947&highlight=apply
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 PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm


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