DL/I database support

EGL supports DL/I (Data Language/I), a hierarchical database manager for COBOL environments.
EGL-generated code can access a DL/I database on any of the following target systems:
EGL implements this access in two ways:

Note that the implicit and explicit DL/I code uses a powerful pseudo-DL/I syntax that differs slightly from actual DL/I code. For more information, see #dli directive.

If you are not familiar with DL/I, see DL/I data in the EGL Programmer's Guide.

Typical DL/I processing

You must create a record with the DLISegment stereotype (see DLISegment stereotype) for each segment type you want to read in your DL/I database.

You must also create a record with the PSBRecord stereotype (see PSBRecord stereotype) to describe your database to EGL. The PSBRecord contains the information that EGL needs to interact with the Program Specification Block (PSB) for the DL/I database. The PSB is a sort of map of the database, listing the various segments and their hierarchies.

Use EGL I/O statements (such as get) to access the data in the database. DL/I locates individual segments (equivalent to records) in the database by using a segment search argument (SSA). An unqualified SSA specifies the segment type only; a qualified SSA identifies a specific segment. EGL creates the SSA for you as part of the implicit code it generates. Alternatively, you can write an SSA as part of the explicit code in a #dli directive.


Feedback