Is it possible to completely remove an &&variable from memory? Setting it to '' or just ; appears to still leave the variable in memory.
-SET &&TEST='123'; ? && -RUN
-SET &&TEST=; ? &&This message has been edited. Last edited by: Kerry,
March 09, 2011, 11:43 PM
Waz
When testing to see if the && variable is cleared, try -TYPE &&TEST
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
March 09, 2011, 11:51 PM
Francis Mariani
=; seems to work for me.
This code
-SET &ECHO=ALL;
-TYPE *** BEFORE
-SET &&TTEST='123';
-? &&TT
-TYPE *** AFTER
-SET &&TTEST=;
-? &&TT
has this result:
-TYPE *** BEFORE
*** BEFORE
-SET &&TTEST='123';
CURRENTLY DEFINED & VARIABLES STARTING WITH '&TT':
&&TTEST = 123
-? &&TT
-TYPE *** AFTER
*** AFTER
-SET &&TTEST=;
CURRENTLY DEFINED & VARIABLES STARTING WITH '&TT':
-? &&TT
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 10, 2011, 12:11 AM
jwatkins
Yes, it does get set to blank, but it still exists. I want to be able to just delete it similar to a how a filedef clear clears out filedefs.
March 10, 2011, 12:15 AM
jwatkins
With a ? && it shows up as a blank.
March 10, 2011, 01:06 AM
Waz
The -? &.. does not show that the variable has been cleared.
At least is been documented in Symptom/Problem/Solution
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
March 10, 2011, 03:43 PM
jwatkins
The LET CLEAR is what I was looking for. Thanks! Can you clear certain ones or is it all or none?
I also noticed that setting the && var to ; left the value to what it was above and appears to not change the value at all. Could be a version difference I suppose.