Previous Topic: &$LHOPT=ALL Statement

Next Topic: &$LHOPT=GET Statement


&$LHOPT=COMMAND Statement

This statement indicates that the user has executed a command not recognized by the system. When the value of &$LHOPT is COMMAND, you can use the list service procedure to perform any special processing that is required to process the command.

Read-Only Variables

This statement contains the following read-only variables:

&$LHOPT

This variable is set to COMMAND.

&$LHLISTFMT

This variable is set to indicate the format of the list. This variable is set to one of the following values:

ACTION

An action list

MSELECT

A multiple select list

SSELECT

A single select list

NUMBERED

A numbered list

&$LHAPPLID

This variable is set to the ID of the application to which the list belongs.

&$LHLISTTYPE

This variable is set to the type of the list. This variable is set to one of the following:

PUBLIC

The list is a public list.

PRIVATE

The list is a private list.

&$LHLISTUSER

This variable is set to the user ID of the user who owns the list, if it is a private list.

&$LHLISTNAME

This variable is set to the name of the list.

&$LHDESC

This variable is set to the description of the list.

&$LHDATASRC

This variable is set to the data source defined for the list.

&$LHCRITTOTAL

This variable is set to the number of &$LHCRIT variables that contain criteria. The value of this variable is in the range 0 through 9999.

&$LHCRITn

These variables are set to the criteria which the service procedure uses to determine the entries to include in the list, if variable &$LHCRITTOTAL is greater than zero; n is in the range 1 to the value of &$LHCRITTOTAL.

&$LHSORT

This variable is set to the sort expression defined for the list.

&$LHFMTFLDn

These variables are set to the names of the real fields defined for the list; n is in the range 1 to the number of real fields defined.

&$LHATB*

These variables are set to the panel attributes that can be used to set the intensity, color, and highlighting for data within an entry line.

Modifiable Variables

This statement contains the following modifiable variables:

&$LHSPDc

These variables contain service procedure data as set by the caller of $CACALL; c is between 0 and 5 alphanumeric and/or national characters. These variables are never set or cleared by the system and must be completely managed by your installation-written NCL procedures.

&$LHCOMMAND

This variable is set to the entered command. This variable can be set to a value that is to be displayed in the Command field on the list when &$LHSETCMDFLD is set to YES.

&$LHSETCMDFLD

Use this variable to indicate whether the value of &$LHCOMMAND is to be set in the Command field on the list when &RETCODE is set to 4. This variable can be set to YES or NO. The default is NO.

&SYSMSG

Use this variable to return a message. If an error occurs during special processing, this variable must be set to an error message.

Return Codes

The variable &RETCODE must be set by the list service procedure to one of the following return codes:

0

Continue processing

4

Invalid command or error; redisplay the list with the error message

8

An error occurred; terminate the list