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
 

 

Display of Variable values as symbolic

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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Nov 11, 2009 9:13 am    Post subject: Display of Variable values as symbolic
Reply with quote

My REXX ISPF Edit macro contains the following lines of code, when I run it I don't see '&VAR' in the output line

Code:

Address "ISREDIT" "MACRO PROCESS"
L = ")SET VAR1  = &VAR"   
L = STRIP(L,"B")     
Address "ISREDIT" "LINE_AFTER 0 =" "'"L"'"


Code:
)SET VAR1  =


is what I see, Why is it so?
How can I fix it?
Back to top
View user's profile Send private message

MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Wed Nov 11, 2009 10:43 am    Post subject:
Reply with quote

Code:
Address isredit "LINE_AFTER 0 = (L)"
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Nov 11, 2009 10:47 pm    Post subject: Reply to: Display of Variable values as symbolic
Reply with quote

It worked. Thanks MBabu
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Nov 11, 2009 10:47 pm    Post subject:
Reply with quote

Probably REXX is trying to substitute a value for &VAR rather than leaving it as a literal string for inserting into the data. Finding none, it makes it blank.

I know CLIST has some built-in functions to prevent substitution within a variable string (&NSTR ???). Look for something similar in REXX.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Thu Nov 12, 2009 2:18 am    Post subject: Reply to: Display of Variable values as symbolic
Reply with quote

Its the use of quotes that tell rexx whether to substitute the variable or whether it is just text.

But I think in this case, it is not a rexx problem, but an ISPF problem. You are probably resulting in this:

Code:
"LINE_AFTER 0 =  ')SET VAR1  = &VAR' "

being passed along to ISPF, but ISPF does its own variable substitution.
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 Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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