In this blog, we will discuss How SAS tools helps you to correct errors in macro language programs.
MACRO:
When you want to execute macro language program then set to MACRO, it recognize and process macro language statements, macro calls and macro variable references.
MERROR:
It identifies macro processor issues a warning message when a macro reference cannot be resolved.
MPRINT:
It displays the SAS statements that are generated by macro execution.
v The beginning of macro execution
v Values of macro parameters at invocation
v Execution of each macro program statement
v Whether each %if statement condition is true or false
v The ending of macro execution.
SERROR:
It issues a warning message when a macro variable reference does not match a macro variable.
v The name in a macro variable reference is misspelled
v The variable is referenced before being defined.
SYMBOLGEN:
It displays the results of resolving macro variable reference.
Macro Variables to Correct Errors in SAS Programs:
SYSDSN:
It writes the value of SYSDSN to the SAs log at specific points in your program to verify that the data sets you expect to be created are being created or not.
SYSERR:
A condition to determine further action to take or to decide which parts of a SAS program to execute.
It can contains the following values:
SYSINDEX:
It displays the number of macros that have started execution in the current SAS session.
SYSLIBRC:
It displays the return code from the last libname statement
All the information ahs been collected from SAS Help document and http://www.sas.com/
No comments:
Post a Comment
I love to hear from you! Leave a comment.
If your question is unrelated to this article, please use my Facebook page.