Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
Monitoring LMS execution with job variables
&pagelevel(4)&pagelevel
If LMS is started with /START-LMS MONJV=<name>
containing a monitoring job variable, LMS places a value in the variable when it terminates. MONJV is supplied with a value independent of the value of the SDF-P /BEGIN-BLOCK command PROPAGATE-STMT-RC operand.
The MONJV value is composed of a three-byte status indicator and a four-byte return code indicator. The return code indicator is composed of a one-byte termination code (TC) and a three-byte program information indicator (PI). LMS sets the status indicator and the termination code as follows:
Status indicator
Status indicator | Return code | Remarks |
Termination code (TC) | Program information (PI) |
1 | 2 | 3 | 4 | 5 | 6 | 7 | Byte |
$T $A | 0 1 2 3 | See below | normal termination abnormal termination |
Termination code
BC | Meaning |
0 | Normal termination LMS executed without error |
1 | Normal termination Warnings were issued or errors occurred which were less serious than the value set as MAX-ERROR-WEIGHT (see MODIFY-LMS-DEFAULTS). |
2 | Abnormal termination A criterion for abortion as defined with MAX-ERROR-WEIGHT was met (see MODIFY-LMS-DEFAULTS). |
3 | Abnormal termination The error which occurred was so serious that continuing the LMS run was either not possible or was not worth while. The LMS run was terminated internally. |
Program information
PI | Meaning |
000 | TC: 0 LMS executed without error |
001 | TC: 1 Nothing worse than warnings occurred. |
002 | TC: 1 or 2 Nothing worse than RECOVERABLE-class errors occurred, e.g. it was not possible to find or to overwrite a member. |
003 | TC: 1 or 2 Nothing worse than SIGNIFICANT-class errors occurred, i.e. no major errors. |
004 | TC: 2 Nothing worse than SERIOUS-class errors occurred. |
005 | TC: 3 The error which occurred was so serious that continuing the LMS run was either not possible or was not worth while. The LMS run was terminated internally. |
Note
If the END statement is used in conjunction with the LMS functionality from EDT, the considerations on "Utilizing LMS functionality from within EDT" should be borne in mind.