After upgrading MVS Agent from version 21.0.3 to 21.0.4 or 12.3.9+, it was found that submission of jobs out of a PDS does not work anymore.
There is a JCL error as the JES2 JCL is not interpreted correctly.
After an EXEC Statement the JCL is interpreted as X'00' instead of 'X40' which leads to an JCL error.
In Job Report
JCL without auto numbering fails, because the very first user JCL line is truncated and filled with hex 0x00 character causing IEFC620I JCL interpreter error.
Component: Agent MVS
Releases affected : 12.3.9+ and 21.0.4
Defect introduced via AE-28385: JCL without auto numbering failed now because the very first user JCL line is truncated and filled with hex 0x00 character causing IEFC620I JCL interpreter error.
Update to a fix version listed below or a newer version.
Component(s): Agent MVS
Automation.Engine 12.3.9 HF2 - Available
Will be fixed on Automation.Engine 21.0.4 HF1
Will be fixed on Automation.Engine 21.0.5
If you are running the Z/OS Agent in 12.3.9 or in 21.0.4 the workaround will consist in activating the automatic line numbering in the JCL before submitting it ('NUMBER ON'). This will prevent the JCL truncating in the JES2 output.
Solution Details: A problem has been fixed, where z/OS job fails with JCL error if JCL doesn't contain auto numbering at column 72-80.