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
 

 

How to pass parameters to a macro from rexx?

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

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Tue Jun 05, 2007 3:40 pm    Post subject: How to pass parameters to a macro from rexx?
Reply with quote

hi,

I have a macro that requires a string as a parameter.

I am opening a file in edit mode with that macro from a rexx program.
This is my edit command.

Code:
address ispexec "edit dataset("ds") macro(mac1)"


now how can i pass a string as an argument to the macro mac1?

Thanks,
Ashwin
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 Jun 05, 2007 3:42 pm    Post subject:
Reply with quote

You can use VPUT / VGET

Or you can search the forum for something like variable macro because I think this has been discussed in the past.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jun 05, 2007 4:01 pm    Post subject:
Reply with quote

You can use the PARM parameter of the EDIT service, as described in the fine manual.

O.
Back to top
View user's profile Send private message
Ashwin_mudikon

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Tue Jun 05, 2007 4:45 pm    Post subject:
Reply with quote

i tried Vget and vput...

it's working now

but i cant understand what it is doing. can anyone explain me that?

Thanks,
Ashwin
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 Jun 05, 2007 4:52 pm    Post subject:
Reply with quote

You are placing a variable into a shared area in the main REXX, and then retrieving it from the macro with VGET
Back to top
View user's profile Send private message
Ashwin_mudikon

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Tue Jun 05, 2007 4:54 pm    Post subject:
Reply with quote

how long the variable will be kept in the shared area?
will it be kept there until a VGET retrives the variable?
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 Jun 05, 2007 5:01 pm    Post subject:
Reply with quote

Generally, the shared area exists as long as the ISPF session exists.

If you want something more permanent, try VPUT (variable) PROFILE
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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
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
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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