Header and/or footer, sometimes the report itself is missing from AS400 Job reports. This behaviour is random, changing even on the same machine.
The problem is reproduced on the following agent versions: 12.3.8.hf2 and 12.3.9
We also tried to save the reports to file (AWI not involved) and the result is the same.
The Test Job does something like:
SBMJOB CMD(CALL PGM(AWAV12T/IRSTRJOB) PARM('AWAV12T/TMP(JAGBDFSP)' '2'+ '1')) JOB(UC4CLEAN) LOG(4 0 *SECLVL) CPYENVVAR(*NO) LOGOUTPUT(*JOBEND+ ) INLLIBL(*JOBD) OUTQ(*JOBD) USER(QBATUC4) HOLD(*YES) LOGCLPGM(*YES)
See an example, the output in Job Report
Program 'UC4 Job Messenger' version '12.3.8+hf.2.build.1649522627010' started
UCXJO41M *************************************************************************************
UCXJO41M ** JOB 0071805107 PID : 0000157227 START AT 08.09.2022/14:50:47 **
UCXJO41M ** ------------------------------------------------------------------------------- **
UCXJO41M *************************************************************************************
Program 'UC4 Job Messenger' version '12.3.8+hf.2.build.1649522627010' terminated normally
Program 'UC4 Job Messenger' version '12.3.8+hf.2.build.1649522627010' started
UCXJO41M *************************************************************************************
UCXJO41M ** JOB 0071805107 PID : 0000157227 ENDED AT 08.09.2022/14:50:48 **
UCXJO41M ** ------------------------------------------------------------------------------- **
UCXJO41M *************************************************************************************
Program 'UC4 Job Messenger' version '12.3.8+hf.2.build.1649522627010' terminated normally
Expected behavior: In the Report we should have the messages from first job messenger (block in green above), then the job output (missing block in yellow above) and finally the end job messenger (block in red above)
Actual behavior: The Report is missing either one or both the job messenger messages, or the job output itself or it has the job output at the end of the report instead of in between the two job messengers.
Release : 12.3.x
Component: Agent AS400
The Spool was printed or deleted during runtime, that explained why this was ocurring randomly.
If possible, a Job Description should be used instead and add there a Job queue that is not Printed or Deleted during runtime.
For the selectec User the spool's are Printed/Deleted and depending on the timing the spool's are sometimes available or not...
A way to troubleshoot this issue is using:
DSPJOB OPTION(*SPLF)
within this job to see if the Output is available
Else, another possibility could be to change within the INI file of the Agent AS400 the submit job call and set the output to a non printed/deleted queue (CRTJOBD OUTQ(XYYYY/XXXXX)
Please note that such a change would need a restart of the agent.