Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass parameters to external macro thru rexx exec

Status
Not open for further replies.

pallu2

Programmer
Sep 8, 2002
1
US
Hi,
Could any one pls tell me how to pass a parameter to a external macro ( rexx macro).I am trying to execute the following...

ADDRESS ISPEXEC,
"VIEW DATASET('userid.REXX.IDFILE') MACRO(MACRO1) var"


/* MACRO MACRO1"*/Its in a diffent dataset*/
"FIND" var "FIRST"
DO WHILE RC=0
"(DATA1) = LINE .ZCSR"
SAY DATA1
"FIND "var" NEXT"
END
"END"
EXIT 0

Thanks in advance..
Prahlad


 
The only practical way is via the variable pools:

ADDRESS ISPEXEC
"VPUT (VAR) SHARED"
"VIEW DATASET('userid.REXX.IDFILE') MACRO(MACRO1)"

MACRO1 will then
address ISPEXEC "VGET (VAR)"
and will then be able to use it as shown.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top