DL/I status code coverage¶
One row per DL/I status code the IMS 15.5 manuals list for the calls in OliviaDB's scope: the database calls (GU, GN, GNP and their hold forms, ISRT, REPL, DLET, FLD), the system service calls OliviaDB serves (CHKP, XRST, ROLL, ROLB, ROLS, SETS, SETU, SYNC, INIT, INQY, LOG, DEQ, STAT, SNAP, RLSE), GSAM, and the calls it refuses (GSCD, GUR). Each row is either produced, with the test that shows it, or not produced, with the reason: the condition cannot arise in OliviaDB, or the code belongs to a part of IMS that OliviaDB doesn't have.
Sources: Messages and Codes, Volume 4, IMS 15.5, chapter 9, "DL/I status codes" (Table 21,
the categories and calls of each code, and the explanations, printed pages 131-175);
Application Programming APIs, IMS 15.5, chapter 1. Test files are under
open/crates/oliviadb-dli/tests/ unless a path is given; "extension" means the Fast Path and
HALDB extension, whose tests live with it.
Parts of IMS that OliviaDB does not have, named below by these keys:
- TM: the transaction manager (message queues, message calls, terminals, alternate PCB destinations, MPP/IFP regions, shared queues).
- CMD: command-level programs (EXEC DLI): the codes the manual marks "command-level programs only". A host that translates EXEC DLI to calls (as the runtimes that use OliviaDB do) sets these itself.
- CICS: the CICS DL/I interface (PCB/TERM scheduling calls).
- CAT: the IMS catalog database. Its record schemas are not in the public manuals, so a clean-room GUR or catalog PCB is not possible; GUR is refused (below).
- UCF: the Utility Control Facility.
- OS: control blocks and storage of the IMS control region (ACB work areas, OLDS buffers, SCD, PST, CSA), which OliviaDB doesn't have.
| code | OliviaDB | evidence or reason |
|---|---|---|
| blank | produced | every test |
| AB | produced (DEQ, SNAP) | the explanation: "AB only applies to full-function DEQ calls" (p.137); DEQ without an I/O area: status_coverage.rs deq_without_an_io_area_gets_ab; SNAP (its own call page, Application Programming APIs p.69): stat.rs snap_takes_its_parameters_by_ll. The other calls the table lists are outside that sentence |
| AC | produced | calls.rs; STAT's undefined function: stat.rs |
| AD | produced | calls.rs, system_calls.rs, inqy.rs (INQY through a PCB, wrong PCB type), stat.rs (STAT/SNAP on a non-full-function PCB, GSCD, GUR through a PCB) |
| AF | produced | a variable-length GSAM record longer than RECORD= allows, on a get call (Application Programming, IMS 15.5, "GSAM status codes", p.288): status_coverage.rs gsam_variable_length_records |
| AG | produced | inqy.rs environ2_adds_its_fields_and_a_short_area_gets_ag |
| AH | produced | calls.rs |
| AI | not produced | a database's store is opened when the program is scheduled or the database is defined; a failure there is an error of that function, never a call status |
| AJ | produced | calls.rs, command_codes.rs, dlet_ssa.rs; INIT with no listed function: status_coverage.rs |
| AK | produced | calls.rs, command_codes.rs |
| AL | produced | system_calls.rs |
| AM | produced | calls.rs, senseg_procopt.rs |
| AO | produced: a storage error, a failing exit or randomizer, an I/O area too short | extensions.rs, sim.rs, stat.rs |
| AP | not produced | TM: message calls and CHKP in a transaction-oriented BMP |
| AQ | produced | inqy.rs null_and_msginfo_get_aq |
| AT | not produced | OS: the control region's I/O area and the OLDS buffer |
| AU | not produced | OS: the control region's SSA area |
| BA | produced | status_coverage.rs unavailable_data_gets_ba_after_init_status_groupa_and_u3303_without; oliviadb-dli-ffi/tests/online.rs |
| BB | not produced | the explanation makes BB "the same as BA" with the unit of work backed out and names one case, a DEDB with updates by the current call (p.147-148): Fast Path, the extension's scope. It names no full-function case, so OliviaDB answers unavailable data with BA (after INIT STATUS GROUPA) or U3303 |
| BC | produced | concurrency.rs |
| BD | not produced | OliviaDB has no LOCKTIME: a call that waits for a lock returns to the host (Status::WAIT), which retries it or gives up |
| BE | not produced | INIT VERSION is answered BF before any database name is looked at |
| BF | produced | status_coverage.rs init_version_gets_bf_and_an_unknown_function_aj (no database versioning) |
| BG | not produced | BG is for INIT VERSION naming a database type that does not support versioning (GSAM, logical databases, MSDB: p.148). OliviaDB answers every INIT VERSION with BF (versioning not enabled) before any database is looked at |
| BJ, BK | produced | inqy.rs dbquery_sets_na_in_db_pcbs_and_bj_or_bk_in_the_io_pcb |
| DA, DJ | produced | calls.rs |
| DE | not produced | GUR through a PCB gets AD, GUR through the AIB X'104'/X'248' (CAT); stat.rs, oliviadb-dli-ffi/tests/c/basic.c |
| DX | produced | logical.rs |
| FA, FT | produced (extension) | the extension's MSDB tests |
| FM | produced (extension) | the extension's HALDB tests |
| FD, FF, FH, FI, FP, FR, FS, FV, FW, FY, GC, L2, LS | not produced by this repository | Fast Path (DEDB, MSDB, HSSP, SDEP) and the BMP buffer and deadlock rules of Fast Path: the extension's scope |
| GA, GB, GE, GK, GP | produced | calls.rs (also logical.rs, senseg_procopt.rs, sim.rs) |
| GD | produced | the first case of the explanation, a parent position whose segment another DB PCB deleted (p.158): status_coverage.rs isrt_on_a_position_another_pcb_deleted_gets_gd (two PCBs on one database). The second case needs an ISRT through a secondary processing sequence, which OliviaDB answers AM (docs/status.md) |
| GG | not produced | PROCOPT GOT/GON and a segment with an invalid pointer: OliviaDB stores no pointers between segments |
| GL | produced | system_calls.rs |
| II | produced | calls.rs, logical.rs |
| IX | produced | logical.rs, logical_isrt.rs |
| LB, LC, LD, LE | produced | status_coverage.rs load_mode_statuses_lb_lc_ld_le |
| LF | produced (extension) | a logical child in the input of a HALDB load (p.160): HALDB (PHDAM, PHIDAM) is the extension's scope, as Fast Path is; the core gives LF only for a HALDB store, which needs the extension |
| NA | produced | inqy.rs (INQY and INIT DBQUERY, at schedule) |
| NE, NI, NO | not produced | NE and NO are index maintenance errors of IMS's own DL/I calls and I/O; OliviaDB maintains indexes in the same unit of work as the source segment. NI concerns the IMS catalog PCB (CAT) |
| NL | not produced | OS: CHKP with no IMS log DD; OliviaDB's checkpoints are kept in the database |
| NU | not produced | OliviaDB marks a database unavailable as a whole, never for update only (docs/integration.md, "INQY") |
| QC, QE, QF | not produced | TM |
| RA | produced | status_coverage.rs rols_with_an_unknown_token_gets_ra |
| RC | not produced | ROLS with unsupported PCBs or an attached subsystem: every PCB OliviaDB serves takes part in SETS/ROLS, and there is no attached subsystem |
| RR | not produced | restricted update mode (RREPL) is not part of OliviaDB |
| RX | produced | logical.rs |
| SA | not produced | OS: storage for SETS |
| SB, SC | not produced | SETS with unsupported PCBs (DEDB, MSDB, GSAM) or an attached subsystem: SETS covers every PCB OliviaDB serves |
| SD | not produced | command code O on a Fast Path secondary index (extension) |
| SF | not produced | database versioning (not in OliviaDB) |
| SY | not produced | IMS Java SYNC |
| TA, TC, TE, TJ, TL, TR, TY, TZ | not produced | CICS and CMD |
| TI, TN, TO, TP, V2, V3, V4, V5, V6, V7 | not produced | CMD |
| UC, US, UX | not produced | UCF |
| V1 | produced | variable_length.rs |
| XD | produced | a batch program's SYNC (p.173: "IMS also returns XD when a batch program issues a SYNC call"): status_coverage.rs sync_gets_xd_in_batch_and_commits_in_a_bmp. An XRST with an unknown checkpoint ID ends the program U0102 (Application Programming APIs, "XRST call", p.74): xrst_with_an_unknown_checkpoint_ends_u0102 |
| XX | not produced | GSAM initialization and call errors of the access method; OliviaDB's GSAM data sets are the host's data sets |
Codes the AIB adds to these (AIBRETRN and AIBREASN) are listed in docs/integration.md,
"C ABI version 12: the AIB" and "INQY".