Function
Terminates the execution of a background job.
Format
ENDJOB action on monitoring file,RETAIN(local name)
The parameters are optional. If RETAIN(local name) is given, the whole monitoring file will be copied to a file with the specified name, as by a COPY command. RETAIN may be abbreviated to RT.
| Monitoring Categories | |
| ALL | Everything is to be printed |
| ALLBUT (AB) | The whole file is to be printed apart from the categories that follow ALLBUT |
| NONE | No printing is required |
| BROADCAS (BC) | Output as a result of a BROADCAST command given by the operator or internally by GEORGE. This can never be suppressed by a REPORT command and is therefore not relevant to that command, but is relevant to commands operating on the monitoring file |
| COMERR (CE) | Command error reporting |
| COMMANDS (CM) | A copy of each command |
| COMMENT (CT) | Command responses giving a track of the job's progress |
| DISPLAY (DP) | Output from the DISPLAY, QUESTION and ANSWER commands |
| FILES (FL) | Output converning file movements and changes in the filestore |
| LISTING (LS) | Output from the LISTFILE and LISTDIR commands |
| LOGGING (LG) | Log analysis information |
| OBJECT (OJ) | Output concerned with or sent by object programs |
| ONLINE (OL) | Output from object programs (see the ONLINE command |
| POSTMORT (PM) | Output from the POSTMORTEM and PRINT commands |
Forbidden contexts
NO USER, MOP, PROGRAM
The context is changed to NO USER
Execution
The command removes the job in which it occurs from the system's list of active jobs, closes the job description file (and also erases it if the job was initiated by a JOB command), deletes any core image and closes the monitoring file. Any temporary files are erased and temporary magnetic tapes are returned to the pool.
Examples
| ENDJOB | The whole of the job's monitoring file will be listed. |
| EJ ALL | The whole of the job's monitoring file will be listed. |
| ENDJOB NONE | None of the job's monitoring file will be listed. |
| ENDJOB OBJECT,RETAIN(MONFILE) | Object program output in the monitoring file will be listed and the whole monitoring file will be copied to a fle named MONFILE. |
Note
ENDJOB can be present in the job description file any number of times.
Error Messages
z IS AN UNKNOWN MONITORING CATEGORY
z IS NOT A CORRECTLY FORMED NAME (local name)