Focal Point
[SOLVED]is there a cure for ECHO=ALL mistake?

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2797083296

January 21, 2020, 01:20 PM
vaayu
[SOLVED]is there a cure for ECHO=ALL mistake?
SO we have a application where developers pushed lots of fexes to prod with the dreading line ECHO=ALL; I'm wondering is there a global setting to turn it off? Unfortunately its a line in every fex inside each reportcaster job (over 100 or so). Definitely a bad idea to have that in prod but, I figured I'll ask here if any of you guys handled it differently?

Thanks in advance.

This message has been edited. Last edited by: vaayu,


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
January 21, 2020, 01:35 PM
Waz
Probably not.

There are some options to turn everything off, but not sure of the results. and wouldn't recommend it.

SET EMGSRV=OFF
SET MSG=OFF

I would suggest getting your developers to put in a line like:

-DEFAULTH &DEBUG_MODE = OFF
-SET &ECHO=&DEBUG_MODE;

Then it can be set in a profile or as a parameter.

We have put in place a fex checker on release to another environment to scan for -SET &ECHO and flag it as an issue.

You may need to add this sort of thing to your release process.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

January 21, 2020, 02:26 PM
BabakNYC
I wonder if you can use LET command to fake it out.


WebFOCUS 8206, Unix, Windows
January 21, 2020, 02:43 PM
Waz
quote:
use LET command to fake it out.

I suspect not, as it only works on FOCUS commands not dialog manager


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

January 21, 2020, 03:46 PM
Hallway
Check out theses docs

If you set the ECHO to NONE as a pre-process, that will prevent procedure code from being displayed (echoed). Once the value of &ECHO has been set to NONE, it cannot be changed during the session or connection.


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
January 21, 2020, 03:59 PM
BabakNYC
Wow that's outstanding! I didn't know this little feature exists. Very nice indeed. Thanks Hallway.


WebFOCUS 8206, Unix, Windows
January 21, 2020, 04:58 PM
Waz
What version did this come in on ?

Just checked 8.1.04 and its in the documentation.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

January 21, 2020, 06:00 PM
vaayu
Thank you Hallway, that seemed to have worked for what we're doing. Appreciate your help!!
quote:
Originally posted by Hallway:
Check out theses docs

If you set the ECHO to NONE as a pre-process, that will prevent procedure code from being displayed (echoed). Once the value of &ECHO has been set to NONE, it cannot be changed during the session or connection.



-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
January 21, 2020, 06:24 PM
FP Mod Chuck
Nice Thread


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
January 21, 2020, 06:39 PM
Hallway
quote:
What version did this come in on


It looks like 7.7 is when it came out.

I found it in the 7.7 docs:

...wf77appslang/source/test_debug.htm

But not in the 7.6.1 docs:

...wf761appslang/source/test_debug.htm

This message has been edited. Last edited by: Hallway,


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
January 21, 2020, 06:48 PM
Waz
Wow, need to read the documentation more often.....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

January 21, 2020, 09:19 PM
Hallway
quote:
Originally posted by Waz:
Wow, need to read the documentation more often.....


I actually found the ECHO setting by helper fex that I have that reports all of the available SETs and their current/available values.
  TABLE FILE sysset
PRINT  
    VALUE AS 'Available,Values'   
    SETMAXLEN AS 'Max,Length/,Value'
    SETFPROMPT AS 'From,PROMPT'
    SETFTAB AS 'From,TABLE'
    SETFPARMS AS 'From,PARAMS'
    VALDESC
    IS_DEFAULT
BY SETNAME
BY SETDESC
BY SERVDESC
BY SETVALTYPE
BY CURR_VALUE
WHERE SETNAME EQ &SETNAME.(OR(FIND SETNAME IN sysset |FORMAT=A64)).Select SET value.;
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/flat.sty,$
TYPE=REPORT, LINES-PER-PAGE=UNLIMITED, TITLETEXT='WebFOCUS Sets', $
ENDSTYLE
END


There are other system tables that you can query as well. Docs here: https://webfocusinfocenter.inf..._lang/source/fmi.htm


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
January 21, 2020, 09:27 PM
Waz
Yes, one of those gems that can be easily forgotten.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

January 22, 2020, 10:03 AM
jgelona
If you want to turn it completely off in production, put -SET &ECHO=NONE; in the edasprof.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.