Comparing EXEC DLI commands and DL/I calls

Use the following table to compare corresponding EXEC DLI and CALL DL/I requests and their functions.

These commands and calls are threadsafe.

Table 1. EXEC commands and DL/I calls
EXEC DLI CALL DL/I Function
GU, GN, and GNP GU, GN, and GNP Retrieving segments from the database
GU, GN, and GNP GHU, GHN, and GHNP Retrieving segments from database for updating
DLET DLET Deleting segments from a database
REPL REPL Replacing segments in a database
ISRT ISRT Adding segments to a database
LOAD ISRT Initially loading a database
SCHD PCB Scheduling a PSB
TERM TERM Terminating a PSB
CHKP CHKP (basic) Issuing a basic checkpoint
SYMCHKP CHKP (extended) Issuing a symbolic checkpoint
XRST RETRIEVE XRST Issuing an extended restart
----- 1 SYNC Requesting sync point processing
DEQ DEQ Releasing segments retrieved using Q command code
----- 1 GSCD Retrieving system addresses
LOG LOG Writing a message to the system log
ROLL or ROLB ROLL or ROLB Dynamically backing out changes
STAT STAT Obtaining system and buffer pool statistics (see also Table 1 )
REFRESH ACCEPT QUERY 2 INIT Refreshing, accepting, and querying data availability status codes
SETS SETS Setting a backout point
ROLS ROLS Backing out to a previously set backout point
----- 1 GSAM Issuing requests to GSAM databases
POS POS Retrieving positioning or space usage information in a DEDB area
Note:
  1. No EXEC DLI equivalent. Use a DL/I CALL, but note that you cannot mix EXEC and CALL in the same UOW.
  2. Status codes are available directly to CALL DL/I applications. EXEC DLI QUERY corresponds to code in the CALL DL/I program instructing it to examine the PCB.