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

applying macro to all the members in a pds


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Wed Dec 12, 2007 12:35 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 12, 2007 8:09 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
Search our Forums:

Back to Top