| Comparison operators | Logical operators |
|---|---|
| EQ or = Equal to | AND or & AND |
| NE or ¬= Not equal to | OR or | OR |
| GT or > Greater than | |
| LT or < Less than | |
| GE or >= Greater than or equal to | NOT operator: |
| LE or <= Less than or equal to | NOT or ¬ NOT |
| NG or ¬> Not greater than | |
| NL or ¬< Not less than |
| Keyword | Purpose |
|---|---|
| RC | examines a return code |
| ABEND | tests for an abnormal end of a program |
| ¬ABEND | tests that an abnormal end of a program did not occur |
| ABENDCC | examines an ABEND condition code |
| RUN | tests if a job step executed |
| ¬RUN | tests if a job step did not execute |
| code | This number is compared to the return code. It is an integer from 0-4095. |
| operator | The comparison made to the return code is EQ - equal to NE - not equal to LT - less than LE - less than or equal to GT - greater than GE - greater than or equal to |
| STEP | RETURN CODE | TEST 0 NE rc | RESULT |
|---|---|---|---|
| 1 | 0 | no | continue |
| 2 | 4 | yes | end |
| RETURN | TEST 8 GT rc | RESULT |
|---|---|---|
| 0 | yes | end |
| 4 | yes | end |
| 8 | no | continue |
| 12 | no | continue |
| STEP | RETURN CODE | TEST 1 3 >= rc | TEST 2 8 < rc | RESULT |
|---|---|---|---|---|
| 1 | 4 | no | no | continue |
| 2 | 8 | no | no | continue |
| 3 | 0 | yes | no | end |
| For these rc's... | 0 - 3 | 4 - 8 | 9 - 4095 |
| The JOB... | terminates | executes | terminates |
| Terminate the JOB if... |
3 >= rc 4 > rc |
or or |
9 <= rc or 8 < rc |
| Code... | 3,GE 4,GT |
or or |
9,LE 8,LT |
| To control by | JOB Statement | EXEC Statement | JES2 Statements |
|---|---|---|---|
| timing execution | TIME parameter | TIME parameter | TIME on /*JOBPARM |
| To control processing by | JOB Statement | JES3 Statements |
|---|---|---|
| canceling jobs that exceed output limits | CANCEL subparameter of BYTES, CARDS, LINES and PAGES parameters | CANCEL subparameter on //*MAIN |
| canceling jobs and issuing dumps when output limit exceeded | DUMP subparameter of BYTES, CARDS, LINES and PAGES parameters | DUMP subparameter of //*MAIN |
| If Parameter is: | nnnnnnn is: |
|---|---|
| BYTES | 0-999999, expressed in thousands of bytes |
| CARDS | 0-99999999 (limit is 6500000 in JES3 systems) |
| LINES | 0-999999, expressed in thousands of lines |
| PAGES | 0-99999999 |
| Parameter | Valid Output Limits |
|---|---|
| BYTES | 1-999999, expressed in thousands of bytes |
| CARDS | 1-9999, expressed in hundreds of cards |
| LINES | 1-9999, expressed in thousands of lines |
| PAGES | 1-16777215 |
| /*ROUTE XEQ or /*XEQ | /*XMIT |
| Sends entire job to destination system | Sends only designated part of jobstream to destination system |
| Processes entire job on destination system | Processes statements outside of /*XMIT and delimiter range on host system; processes statements between /*XMIT and delimiter on destination system |
| Scans entire jobstream for JCL errors before sending to destination | Scans jobstream for JCL errors at destination |
| To | JOB Statement | EXEC Statement | Other Statements |
|---|---|---|---|
| route messages to specific output class | MSGCLASS parameter | ||
| control amount of information printed in the job log | MSGLEVEL parameter | ||
| send data to a program | PARM parameter | ||
| request message upon completion of job processing or printing | NOTIFY parameter | JES2 /*NOTIFY statement | |
| specify message handling by PSF | PIMSG parameter on OUTPUT JCL |