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

passing parameters to macros


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Thu Apr 17, 2008 2:53 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 17, 2008 3:04 pm
Reply with quote

2.2.3.6 Passing Parameters to a Macro.
Back to top
View user's profile Send private message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Thu Apr 17, 2008 3:22 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 17, 2008 3:41 pm
Reply with quote

Please show us what you have coded in both the main exec and the macro
Back to top
View user's profile Send private message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Thu Apr 17, 2008 4:25 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 17, 2008 4:41 pm
Reply with quote

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
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts passing symbolic parameters through d... JCL & VSAM 3
Search our Forums:

Back to Top