SET.EXIT.STATUS

SET.EXIT.STATUS

Top  Previous  Next

 

The SET.EXIT.STATUS command sets the final exit status returned by QM to the operating system.

 

 

Format

 

SET.EXIT.STATUS value

 

where

 

valueis the numeric exit status value to be set.

 

 

By default, QM returns an exit status of zero to the operating system on termination. The SET.EXIT.STATUS command allows an application to return an alternative exit status value to indicate, for example, success or failure. Note that error conditions detected during startup of a QM session return an exit status of 1.

 

See also the QMBasic SET.EXIT.STATUS statement.