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
 
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: 2083
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 Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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