PROC SQL also provides macro tools to do the following:
-
stop execution of a job if an error
occurs
-
execute programs conditionally
based on data values
The following table provides
information about macro variables created by SQL that affect job execution.
Macro Variables that Affect Job Execution
|
|
|
Contains the highest
return code that occurred from some types of SQL insert failures.
This return code is written to the SYSERR macro variable when PROC
SQL terminates.
|
|
Contains the number
of rows or observations produced by a SELECT statement.
|
|
Contains the number
of iterations that the inner loop of PROC SQL processes.
|
|
Contains the return
code from an SQL statement. For return codes, see SAS SQL documentation.
|
|
Contains descriptive
information and the DBMS-specific return code for the error that is
returned by the pass-through facility.
|
|
contains the DBMS-specific
return code that is returned by the pass-through facility.
|