Page History
7.108 SELECTLIST
| Note | ||
|---|---|---|
| ||
| Note: Usage options |
The SELECTLIST command is used in conjunction with the ENDSELECT command to form a loop to process all entries from a list that match certain criteria.
...
For example, the SELECTLIST / ENDSELECT loop:
-----> SELECTLIST NAMED(#ORDERLINE) GET_ENTRYS(*ALTERED)
| UPDATE FIELDS(#ORDERLINE) IN_FILE(ORDLIN)
| WITH_KEY(#ORDER)
----- ENDSELECT
forms a loop to process all entries in a list named #ORDERLINE that have been altered since they were added to it. Each changed entry is processed by the UPDATE command which reflects the change into file ORDLIN.
...
| Panel | ||
|---|---|---|
| ||
Optional SELECTLIST -- | ||
| No Format | ||
| Optional
SELECTLIST --- NAMED ---------- *FIRST -------------------------> list name >-- GET_ENTRYS --- *ALL --
>-- GET_ENTRYS ----- *ALL ------------------------->
>--- WHERE -------- 'condition' ----------------------| |