Example 1: Set the screen to display mode before displaying a set of fields to the user:
SET_MODE TO(*DISPLAY)
DISPLAY FIELDS(#ORDER #CUSTNO #ADDRL1 #ADDRL2 #POSTCD)
Example 2: Set the mode to add before initializing a list with 20 entries:
SET_MODE TO(*ADD)
CHANGE FIELD(#ORDERLINE) TO(*NULL)
INZ_LIST NAMED(#ORDERLINE) NUM_ENTRYS(20)