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 Profile Log in to check your private messages Log in
 
How to call a macro with parameters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to call a macro with parameters
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Fri Jan 23, 2009 4:19 pm    Post subject: Reply to: How to call a macro with parameters
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jan 23, 2009 5:36 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Jan 24, 2009 2:43 am    Post subject: Reply to: How to call a macro with parameters
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 27, 2009 12:20 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm

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