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

Display of Variable values as symbolic


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

PostPosted: Wed Nov 11, 2009 10:43 am
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
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
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

Global Moderator


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

PostPosted: Thu Nov 12, 2009 2:18 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Variable Output file name DFSORT/ICETOOL 8
Search our Forums:

Back to Top