Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing parameters to macros

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: passing parameters to macros
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

Moderator Team Head


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

PostPosted: Thu Apr 17, 2008 3:04 pm    Post subject: Reply to: passing parameters to macros
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    Post subject: Reply to: passing parameters to macros
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 17, 2008 3:41 pm    Post subject:
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    Post subject: Reply to: passing parameters to macros
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 17, 2008 4:41 pm    Post subject:
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    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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us