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
 

 

Pass value from Macro to exec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Tue Feb 26, 2008 2:44 pm    Post subject: Pass value from Macro to exec
Reply with quote

Hi,

I have used the macro TMAC on dataset 'Y' as follows

Code:
ADDRESS ISPEXEC "EDIT DATASET("Y") MACRO(TMAC)"


I got output from the macro and i want to use that in my REXX exec.
How can that be done.

Kavya.Y
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: Tue Feb 26, 2008 2:53 pm    Post subject:
Reply with quote

What do you mean, you want to now use the dataset depicted by the variable Y ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Feb 26, 2008 3:09 pm    Post subject:
Reply with quote

What do you mean by "I got output from the macro "? Is it written to a dataset? Is it in variables? Do you use SAY?

O.
Back to top
View user's profile Send private message
vgmurthy

New User


Joined: 19 Feb 2008
Posts: 8
Location: Chennai

PostPosted: Tue Feb 26, 2008 4:33 pm    Post subject:
Reply with quote

hi,
Guess ... You have the answer in your question. Since you say that you got the output from ISPEXEC, I understand that you have it in a variable. If that's the case then you can straight away use that in your REXX code.
Hoep this helps.

Thanks,
Murthy.
Back to top
View user's profile Send private message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Tue Feb 26, 2008 6:07 pm    Post subject:
Reply with quote

hi,

I have some variables in the Macro.
I am unable to use them stright away in the rexx program using 'SAY'.

For Ex:

The o/p i got from the macro for variable a is 10.
Then when i give say 'a' in the exec it is not displaying it as 10 instead it is displaying simply 'A'

Hope i had made my quetion more clear.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Feb 26, 2008 6:09 pm    Post subject: Reply to: Pass value from Macro to exec
Reply with quote

what about using VPUT and VGET
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 Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


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