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

How to pass parameters to a macro from rexx?


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

PostPosted: Tue Jun 05, 2007 3:42 pm
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: 2358
Location: Israel

PostPosted: Tue Jun 05, 2007 4:01 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 05, 2007 4:52 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 05, 2007 5:01 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top