View previous topic :: View next topic
|
Author |
Message |
Anu R
New User
Joined: 09 Apr 2008 Posts: 18 Location: India
|
|
|
|
I have a rexx routine which edits datasets using a macro like this
"EDIT DATASET('"A"("STRIP(B.I)")') MACRO(MODMAC)"
Here I want to pass parameter to the macro MODMAC.
If i try this its not working
EDIT DATASET('"A"("STRIP(B.I)")') MACRO(MODMAC parm1)
Is there any other way to pass parameter to the macro from my rexx routine? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Anu R
New User
Joined: 09 Apr 2008 Posts: 18 Location: India
|
|
|
|
Kevin,
Can you be more specific.I went through the Hints and tips doc and did not find anything specific to my requirement.
I tried using vput abd vget also..But it does not work. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Please show us what you have coded in both the main exec and the macro |
|
Back to top |
|
|
Anu R
New User
Joined: 09 Apr 2008 Posts: 18 Location: India
|
|
|
|
Thank you expat..The problem is resolved...
It works ...
This is how I coded in my rexx routine
ADDRESS ISPEXEC
'VPUT MEMNAME'
"EDIT DATASET('"A"("STRIP(B.I)")') MACRO(MODMAC)"
And in my macro
ADDRESS ISREDIT
"MACRO"
and where ever I need the variable 'memname' I have coded as
ADDRESS ISPEXEC "VGET MEMNAME SHARED"
---
---
---
ADDRESS ISREDIT |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I would specify where you put the variable, either PROFILE or SHARED - personal preference if PROFILE, for BOTH VPUT and VGET.
Don't know if it makes a difference using the parantheses, but I always code
Code: |
VPUT (varname) PROFILE
|
|
|
Back to top |
|
|
|