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: 2050
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 upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


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