Hi,
Wim beat me to it but wanted to add that whilst they seem like constants, this is still TI after all, they are just another TI function that does nothing more and nothing less than always return the same number (at least for a particular version of TM1, albeit I don't recall us changing those numbers).
And since Wim didn't include the ExecutionInProgess code here's how you can keep up to date with the latest (provided you set or pass pFileName):
DataSourceASCIIQuoteCharacter = '';
DataSourceASCIIDelimiter = ' ';
TextOutput( pFileName, 'ProcessExitByBreak():', Str( ProcessExitByBreak(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitByChoreQuit():', Str( ProcessExitByChoreQuit(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitByChoreRollback():', Str( ProcessExitByChoreRollback(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitByProcessRollback():', Str( ProcessExitByProcessRollback(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitByQuit():', Str( ProcessExitByQuit(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitMinorError():', Str( ProcessExitMinorError(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitNormal():', Str( ProcessExitNormal(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitOnInit():', Str( ProcessExitOnInit(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitSeriousError():', Str( ProcessExitSeriousError(), 1, 0 ));
TextOutput( pFileName, 'ProcessExitWithMessage():', Str( ProcessExitWithMessage(), 1, 0 ));
TextOutput( pFileName, 'ProcessExecutionInProgress():', Str( ProcessExecutionInProgress(), 1, 0 ));
------------------------------
Hubert Heijkers
STSM, Program Director TM1 Functional Database Technology and OData Evangelist
------------------------------