On a mainframe, a job abends with an S322 abend code when the TIME value has been exceeded on a per job or per step basis.
The method used to end a job is as follows, depending on the platform on which Studio Enterprise Edition for UNIX is operating:
on Enterprise Server running on a PC, it is possible that your code is executing in a loop that is so tight that the timing mechanism is unable to break execution to terminate the job gracefully. In this event, it performs a "hard kill" on the process.
For all timeouts, the ESMAC Condition Code associated with the job is an S322. The job termination codes, as shown in the joblog, are either S222 in the event of a successful "soft kill" or nothing in the event of a successful "hard kill" In both cases a message similar to the one below is written to the console.log file:
CASKC6002I JOB10347 terminated due to exceeding TIME parameter 05:01:20