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 | Program | ||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | Byte |
$T $A | 0 2 | See | normal abnormal |
Termination code
BC | Meaning |
0 | Normal termination |
1 | Normal termination |
2 | Abnormal termination |
3 | Abnormal termination |
Program information
PI | Meaning |
000 | TC: 0 |
001 | TC: 1 |
002 | TC: 1 or 2 |
003 | TC: 1 or 2 |
004 | TC: 2 |
005 | TC: 3 |
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.