Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Calling EDT

&pagelevel(4)&pagelevel

EDT is called in accordance with the standard rules for program linkage. It can also be called using higher-level programming languages. Before program entry in EDT, the registers must be loaded as follows:

Register

Data area

(R1)
(R13)
(R14)
(R15)

A (PARAMETERLIST)
A (SAVEAREA)
A (RETURN)
V (ENTRY)

PARAMETERLIST

Users must create this data area themselves.

The parameter list must contain the addresses of all the control blocks and defined data fields from which EDT can extract the required information (e.g. statement sequences, message texts etc.).

The parameter list is dependent on the function of the call. The descriptions of the individual functions indicate the parameters that need to be specified (see section “Statement functions” and “Logical record access functions”).

SAVEAREA

Register save area (18 words, DC 18F'0') which must be created by the caller. EDT saves the registers here.

RETURN

The return address in the calling program. The program is continued at this address when EDT is terminated.

ENTRY

The IEDTGLE module contains a separate entry point address for each function:

Entry point

Function

IEDTINF

Read the EDT version number

IEDTCMD

Execute an EDT statement sequence

IEDTEXE

Execute an EDT statement sequence

IEDTGET

Read a record
Read the global status
Read the local status of a work file

IEDTGTM

Read a marked record

IEDTPUT

Write a record

IEDTPTM

Mark a record

IEDTDEL

Delete a record range
Delete the copy buffer

IEDTREN

Modify the line number