Focal Point
[SOLVED] ECHO ALL Command to External File

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

June 03, 2010, 08:16 AM
fatboyjim
[SOLVED] ECHO ALL Command to External File
Hi,

Is it possible to have the debugging code used by -SET &ECHO=ALL; output to an external file?

I'm asking because I am getting the message about exceeded IBIF_Max_Messages, and I don't want to change the global setting in WebFOCUS (MRE) to display the log. Is there a way to dump the comments/code to an external file?

Best Regards,

Jimmy Pang

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


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
June 03, 2010, 10:22 AM
GamP
As far as I know thee is no possibility to do just that.
But you might be able to get away with more lines in the output if you add the ibif_max_messages parameter to your html request - i.e. put the parameter in the url. I'm not quite sure of the name of the parameter, I trust you can find it somewhere.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
June 03, 2010, 10:31 AM
Dan Satchell
Try doing this before running your procedure:

APP FILEDEF EMGFILE DISK EMGFILE.TXT
 or
APP FILEDEF EMGFILE DISK EMGFILE.TXT (APPEND
SET EMGSRV=FILE
-RUN


To return messages to standard output:

SET EMGSRV=ON

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
June 03, 2010, 10:47 AM
njsden
Very nice!



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
June 03, 2010, 12:28 PM
Ram Prasad E
Dan, this will redirect only the error messages and not the entire code. Though we use SET ECHO =ALL, only errors gets collected in EMGFILE.TXT file.


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
June 03, 2010, 04:11 PM
fatboyjim
Thanks Dan for your suggestion.
I am able to see what the error code before the IBIF_max_messages occurs.

This will at least give me an idea where the problem is even though it does not display the source code of where those errors occurred.

I'll mark this one as solved.
Thanks again.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
June 03, 2010, 04:30 PM
Dan Satchell
Ram, yes you are correct that EMGSRV only collects error messages. My mistake.


WebFOCUS 7.7.05
June 03, 2010, 05:55 PM
Waz
As mentioned elsewhere in the forum, you can use tracing to capture all the output.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!