InterSystems FAQ rubric
Use the ErrorList query of the SYS.ApplicationError class.
- Note 1: Runs in the %SYS namespace.
- Note 2: This is a non-stored utility, so we use the %ResultSet class rather than %SQL.Statement.
An example of command execution is as follows.
USER>set $namespace="%SYS" //equal to zn "%SYS"
%SYS>set rset=##class(%ResultSet).%New()
%SYS>set rset.ClassName="SYS.ApplicationError"
%SYS>set rset.QueryName="ErrorList"
// The first argument of the query is the namespace name, the second argument is the date (in MM/DD/YYYY format).
%SYS>do rset.
.png)


