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: 
qlikviewwizard
Master II
Master II

Script function

Hi All,

What is the TRACE function.

Please explain. Thanks in advance.

eg:

TRACE; 

TRACE Loading the FARS mapping tables; 

1 Solution

Accepted Solutions
MayilVahanan

HI

The Trace function log your comments to Log file. Just providing the comments in the Log file as well.

In ur example:

TRACE Loading the FARS mapping tables;


"Loading the FARS mapping tables " is logged in ur log file.


Please refer the help file

The trace statement writes a string to the Script Execution Progress window and to the script log file, when used.

It is very useful for debugging purposes. Using $-expansions of variables that are calculated prior to the Trace statement, you can customize the message.

The syntax is:

trace string

Examples:

trace Main table loaded;

Let MyMessage = NoOfRows('MainTable') & ' rows in Main Table';

trace $(MyMessage)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

HI

The Trace function log your comments to Log file. Just providing the comments in the Log file as well.

In ur example:

TRACE Loading the FARS mapping tables;


"Loading the FARS mapping tables " is logged in ur log file.


Please refer the help file

The trace statement writes a string to the Script Execution Progress window and to the script log file, when used.

It is very useful for debugging purposes. Using $-expansions of variables that are calculated prior to the Trace statement, you can customize the message.

The syntax is:

trace string

Examples:

trace Main table loaded;

Let MyMessage = NoOfRows('MainTable') & ' rows in Main Table';

trace $(MyMessage)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hariprasadqv
Creator III
Creator III

Hi,

Trace is uesd with $ for populating detailed execution information to the execuion window and to the log file.

PSB.

Re: Trace()

TRACE elapsed timespan in a QVW script

Re: What is Trace Keyword in QlikView

qlikviewwizard
Master II
Master II
Author

Hi MayilVahanan,hariprasadqv,

Thank you.

hariprasadqv
Creator III
Creator III

Hi,

Find the attachment for working example.