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

Pass value from Macro to exec


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Feb 26, 2008 2:53 pm
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: 2358
Location: Israel

PostPosted: Tue Feb 26, 2008 3:09 pm
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Feb 26, 2008 6:09 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top