View previous topic :: View next topic
|
Author |
Message |
Ashwin_mudikon
New User
Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can use the PARM parameter of the EDIT service, as described in the fine manual.
O. |
|
Back to top |
|
|
Ashwin_mudikon
New User
Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Ashwin_mudikon
New User
Joined: 03 Apr 2007 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|