LOAD command

The Load (LOAD) command is used to add a segment sequentially while loading the database.

Format

Read syntax diagramSkip visual syntax diagramEXECDLILOADUSING PCB( expression)VARIABLESEGMENT( name)SEGMENT(( area))SEGLENGTH( expression)FROM( area)

Options

USING PCB(expression)
Specifies the DB PCB you want to use. Its argument can be any expression that converts to the integer data type; you can specify either a number or a reference to a halfword in your program containing a number.
VARIABLE
Indicates that a segment is variable-length.
SEGMENT(name)
Specifies the name of the segment type you want to retrieve, insert, delete, or replace.
SEGMENT((area))
A reference to an area in your program containing the name of the segment type. You can specify an area instead of the name of the segment in the command.
SEGLENGTH(expression)
Specifies the length of the I/O area from which the segment is obtained. Its argument can be any expression that converts to the integer data type; you can specify either a number or a reference to a halfword in your program containing a number. (SEGLENGTH is required in COBOL programs for any SEGMENT level that specifies the INTO or FROM option.)

Requirement: The value specified for SEGLENGTH must be greater than or equal to the length of the longest segment that can be processed by this call.

FROM(area)
Specifies an area containing the segment to be added, replaced, or deleted.

Usage

The LOAD command is used for database load programs, which are described in IMS Version 15.4 Database Administration.

Example

EXEC DLI LOAD
       SEGMENT(ILLNESS) FROM(ILLAREA);