7 28 1 DLT_ENTRY Parameters

LANSA Technical

7.28.1 DLT_ENTRY Parameters

FROM_LIST

NUMBER

NUMBER

Specifies the list entry number that is to be deleted.

The default value of *CURRENT specifies that the entry currently selected (ie retrieved) from the list, in a SELECTLIST/ENDSELECT list processing loop or by a GET_ENTRY or LOC_ENTRY command, will be deleted from the list.

A numeric value or field name specifies the entry number of the list that is to be deleted. As each entry is added to a list by the ADD_ENTRY command it is assigned a number that identifies it. List entries are numbered from 1 (first entry number) to 9999 (maximum possible last entry number). This entry number can then vary as ADD_ENTRY commands, to add after previous list entries, or DLT_ENTRY commands, to delete previous list entries, are executed. By specifying a list entry number it is possible to delete an individual list entry without first having selected (or retrieved) it.

FROM_LIST

Specifies the name of the list from which the entry should be deleted.

The default value of *FIRST specifies that the first list declared in the RDML program by a DEF_LIST (define list) command is the list to be used (which must be a working list).

If a list name is used then the list name must be declared elsewhere in the RDML program by a DEF_LIST (define list) command.