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
 
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: 10327
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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am

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