Hi.
As I read the manual, :MODIFY_STATE can NOT be used to set any Automic states (such as ENDED_OK, ENDED_CANCEL, ENDED_VANISHED). Instead, it "fakes" the return code by the external program in the post processing tab, e.g. to be non-zero. This is evident by the fact that the example specifies a value of 50, whereas Automic codes are always four digits, zero padded (again, as per the manual).
What happens once you fake the return code of the external program (JCL) using :MODIFY_STATE depends on the configuration of your job in Automic (e.g. using post conditions).
Faking the OS return code is NOT the same as the "Modify state manually" function, which sets
Automic status codes (four digits, 0001-9999) as oposed to OS return codes (e.g. 0-127). These are different concepts.
OP: I don't know of any function to script the effect of "Modify state manually", sorry.
Original Message:
Sent: 11-11-2019 03:16 AM
From: Dejan Hrubenja
Subject: Modify state manually by script
Hi
sure ... :MODIFY_STATE
https://www.google.com/search?client=firefox-b-d&q=automic+documentation+modify+state
Please take care that it is only allowed in the Post Process page. It does NOT work in the Process page, because the STATE does NOT exist there.
What's the error message when you call CANCEL_UC_OBJECT? CANCEL_UC_OBJECT does NOT work, if the task has finished.
Original Message:
Sent: 11-10-2019 03:16 AM
From: Soren Vandecauter
Subject: Modify state manually by script
Hi,
Is there a procedure to execute the "Modify state manually" by script? I don't find a function that execute that. Cancel_us_object is not working.
thx!
br
Sören