AnsweredAssumed Answered

Changing Job State to "ENDED_EMPTY" in Post-Script possible?

Question asked by AndreEymann608218 on May 19, 2016
Latest reply on May 30, 2016 by AndreEymann608218
Hello Community,

is it possible to change a job state to "ENDED_EMPTY" after processing a job? We would like to end our job ENDED_EMPTY after analyzing the job's report. To achieve this we scan the report with Output-Scan (finding a specific string) then set the RC to 127 and would then like to change the state.

Code (Post-Script):

:SET &RET# = GET_UC_OBJECT_STATUS(, , "RETCODE")
:SET &RET# = FORMAT(&RET#)
:PRINT "Der Status ist &RET#"
:IF &RET#=127
:  MODIFY_STATE RETCODE = 0
:  MODIFY_STATE STATUS_TEXT = "Keine Datei gefunden."
:ENDIF

The online help states the MODIFY_STATE only allows ENDED_OK or ENDED_NOT_OK, but not ENDED_EMPTY :(

Any help would be great!

André

Outcomes