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: 10256
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 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 Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
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


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