Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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 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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us