The Agent is unable to retrieve the severity ending code and the job will fail even if it runs properly if a joblog was not produced in a spool file associated with the job on the system. Two parameters - LOG and LOGOUTPUT - must be defined for the job description.
If a joblog is not produced in a spool file associated with the job on the system, the Agent is unable to retrieve the severity ending code and the job will fail even if it runs properly. This is how the agent must run in order to get that ending code. If the job end and the spool file is not created, it is not possible to get any information from the job as it is considered removed from the system. In order to avoid such a situation, two parameters must be defined in the job description in i5/OS side or the same parameters keywords must be defined in the ESP OS/400 job definition (the keyword option); these parameters are the LOG and the LOGOUTPUT.
Definitions for the parameters should be:
LOG(1 0 *MSG)
The first parameter in the LOG must be at least 1 (it cannot be 0), and the last argument must be either *MSG or *SECLVL to ensure a joblog can be created. It is recommended that LOGOUTPUT is *JOBEND, although *JOBLOGSVR can be used as well. *PND is not supported, *SYSVAL can be used as long as the QLOGOUTPUT system value is *JOBEND or *JOBLOGSVR.