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
------------------------------
Original Message:
Sent: Sat March 02, 2024 07:17 AM
From: mvp morgan
Subject: What is the status code (number) for each returned status
I can test each one to know the exact number but if someone has it at hand, it would save some time. Especially there is a new one - ProcessExecutionInProgress() in v12. Thanks.
https://www.ibm.com/docs/en/cognos-tm1/10.2.2?topic=variables-processreturncode
StatusCode:
– ProcessExitByBreak() = Indicates that the process exited because it encountered a ProcessBreak function.
– ProcessExitByChoreQuit() = Indicates that the process exited due to execution of the ChoreQuit function.
– ProcessExitByChoreRollback() = Indicates that the process exited because it encountered a ChoreRollback function.
– ProcessExitByProcessRollback() = Indicates that the process exited because it encountered a ProcessRollback function.
– ProcessExitByQuit() = Indicates that the process exited because of an explicit quit command.
– ProcessExitMinorError() = Indicates that the process executed successfully but encountered minor errors.
– ProcessExitNormal() = Indicates that the process executed normally.
– ProcessExitOnInit() = Indicates that the process aborted during initialization.
– ProcessExitSeriousError() = Indicates that the process exited because of a serious error.
– ProcessExitWithMessage() = Indicates that the process exited normally, with a message written to tm1server.log.
------------------------------
mvp morgan
------------------------------