COMPARE AIB statement
The COMPARE AIB statement is optional. You can use it to compare values returned to the AIB by IMS.
The following table shows the format of the COMPARE AIB statement.
| Column | Function | Code | Description |
|---|---|---|---|
| 1 | Identifies control statement | E | COMPARE statement. |
| 2 | Hold compare option | H | Hold COMPARE statement. See note for COMPARE AIB Statement. |
| b | Reset hold condition for a single COMPARE statement. | ||
| 3 | Reserved | b | |
| 4-6 | AIB compare | AIB | Identifies an AIB compare. |
| 7 | Reserved | b | |
| 8-11 | Return code | xxxx | Allow specified return code only. |
| 12 | Reserved | ||
| 13-16 | Reason code | xxxx | Allow specified reason code only. |
| 17-72 | Reserved | b | b |
| 73-80 | Sequence indication | nnnnnnnn | For SYSIN2 statement override. |
Note for COMPARE AIB Statement: To
execute the same COMPARE AIB after a series of calls, put an H in
column 2. When you specify an H, the COMPARE statement executes after
each call. The H COMPARE statement is particularly useful when comparing
with the same status code on repeated calls. The H COMPARE statement
stays in effect until another COMPARE AIB statement is read.