<<
However, does anyone know why the error variable is not setting. It does set
if the select fails. But if the print command fails it does not.
>>
Do you have any EEP code in the report at all (for example, in BEFORE
GENERATE). If so, those commands could possibly be resetting the error
variable. Also, RBTI may have removed the ability of PRINT to set the error
variable because of this EEP issue.
You can pre-count for rows if you want, or add a variable or EEP code in your
report to set rStatus = 'COMPLETE'. Then do:
SET VAR rStatus = 'FAILED'
PRINT. . .
IF rStatus = 'FAILED' THEN
. . .
ENDIF
--
Larry