Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bnichol
Specialist
Specialist

How can I make Trace act like @echo in DOS?

I'd like to have the Trace command in a load script not appear in the log, just the result of the Trace command. Similar to the way in DOS that the @ symbol in a @echo command displays just the results.

Any suggestions?

B

2 Replies
Not applicable

This migth be as easy as:

  1. turn on logging
  2. append somethign odd (like three exclamation marks) before traced text
  3. reload
  4. filter only the lines with the three exclamation marks from the *.qvw.log file.


trace !!! filter;

trace !!! only;

trace !!! the ;

trace !!! lines;

trace !!! with ;

trace !!! three;

trace !!! exclamation;

trace !!! marks;


For example filter with DOS command line:


find "!!!" *.log | find /V "trace"


-Alex

Not applicable

Is there a way to add comments or formatting to a log file, without listing and executing the TRACE command?

For instance, my habit is to put section headers in TRACE lines, like so:


TRACE ;
TRACE *****************************************;
TRACE *** Ratios ***;
TRACE *****************************************;


The problem (I realize this is all minor) is that TRACE lines are listed twice in the log, once as a executable line and again for the results. Like so:


4/10/2011 11:51:36 PM: 0534 TRACE
4/10/2011 11:51:36 PM: 0534

4/10/2011 11:51:36 PM: 0535 TRACE *****************************************
4/10/2011 11:51:36 PM: 0535 *****************************************

4/10/2011 11:51:36 PM: 0536 TRACE *** Ratios ***
4/10/2011 11:51:36 PM: 0536 *** Ratios ***

4/10/2011 11:51:36 PM: 0537 TRACE *****************************************
4/10/2011 11:51:36 PM: 0537 *****************************************


Is there a way I can have comments list just once in the log?

Thanks,

DJ