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

How to call a macro with parameters


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumaresan c

New User


Joined: 20 Jan 2009
Posts: 6
Location: Chennai

PostPosted: Fri Jan 23, 2009 4:18 pm
Reply with quote

I have written a macro by name DELETE1 to delete certain lines based upon a condition. Kindly help me how to call this macro with parameters. I have to use this parameter in the macro for checking a condition.

Please help me.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Fri Jan 23, 2009 4:19 pm
Reply with quote

did You care to look at the manual, it' s well explained there
Back to top
View user's profile Send private message
kumaresan c

New User


Joined: 20 Jan 2009
Posts: 6
Location: Chennai

PostPosted: Fri Jan 23, 2009 4:54 pm
Reply with quote

I need to call this macro with parameter from another rexx code. Pls help me to accomplish this
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Fri Jan 23, 2009 5:36 pm
Reply with quote

As stated by Enrico, did you look in the manuals ?

What have you tried for yourself and what were the results. Please post the output of the error messages if you have them as well as the pertinent area of code.

Without such things we can only guess at what you are trying to do.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Sat Jan 24, 2009 2:43 am
Reply with quote

Please clarify what environment you are in... editor or not?
Back to top
View user's profile Send private message
kumaresan c

New User


Joined: 20 Jan 2009
Posts: 6
Location: Chennai

PostPosted: Tue Jan 27, 2009 12:17 pm
Reply with quote

'ISREDIT MACRO (EASPTS)'
ADDRESS ISREDIT
"X ALL " EASPTS 9
"DELETE ALL X"

This is my macro name DELETE1 to delete certain lines in a file by checking for the existence of the parameter EASPTS in 9th position.


"EDIT DATASET('"IN_FILE2"') MACRO(DELETE1)"

and this is the syntax which I used to invoke the above macro (without parameter) from another REXX code.

I need to edit the dataset IN_FILE2 by calling the macro DELETE1 with parameter EASPTS.

Pls help me how to invoke this macro(with parameter EASPTS) from another REXX code.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Tue Jan 27, 2009 12:20 pm
Reply with quote

Take a look at VPUT and VGET which has been used in examples on the forum already.
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 ADDRESS TSO CALL to invoke a module TSO/ISPF 7
No new posts Starting a PROC with parameters from ... CLIST & REXX 6
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 6
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts Access to macro definitions PL/I & Assembler 4
Search our Forums:


Back to Top