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
 
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: 4650
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: 8620
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: 8620
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
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
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

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