This statement displays a list.
This statement has the following format:
&CONTROL SHRVARS=($LH)
-EXEC $CACALL OPT=ACTION
ACTION=DISPLAY
CLASS=LIST
NAME='APPL=application id
[TYPE={PUBLIC | PRIVATE}]
[USER=userid]
NAME=list name'
[PARMS='[FORMAT={ACTION | MSELECT |
SSELECT | NUMBERED}]
[CRITERIA=criteria]
[MAXSEL={9999 | nnnn}]
[AUTOSEL={YES | NO}]']
A required parameter giving the application identifier of the list.
An optional parameter giving the type of list. Valid values are as follows:
Public listavailable for general use
Private listowned by a specific user ID
Note: If you do not specify TYPE or USER, the function attempts to find a PRIVATE list owned by the invoking user ID first. If unsuccessful, the function uses a PUBLIC list.
An optional parameter (if TYPE is not PUBLIC) giving the user ID of the user owning the list. Default is the user ID of the user invoking the function.
A required parameter giving the name of the list.
An optional parameter indicating the format in which the list is to be displayed. Valid values are as follows:
Action list
Multiple selection list
Single selection list
Numbered list
The default is ACTION.
A criteria statement used to select items to go in the list. The format must conform to that required by the service procedure specified in the list definition. If specified, this criteria overrides any criteria specified in the list definition, and no &$LHCRITnnnn variables can be set.
The maximum number of items that can be chosen from a list in format MSELECT (multiple selection list). The default is 9999, and the range is 1 through 9999.
Determines whether an entry in a list is automatically selected if it is the only entry in the list. The default is NO.