The SET.STATUS statement sets a value for return by the STATUS() function.
The SET.STATUS statement sets the internal process status memory. The value of this item is returned by the STATUS() function.
This statement should rarely be required by application developers but can simplify some error handling. Note that the STATUS() function always returns the absolute (positive) value of the status value.