PAR_CHOIV

Obtains from a parameter a list of character values selected from a menu of options

Description:

This routine obtains a vector of character values from a parameter. Each value must be one of a supplied list of acceptable values, and can be an abbreviation provided it is unambiguous.

Invocation

CALL PAR_CHOIV( PARAM, MAXVAL, OPTS, VALUES, ACTVAL, STATUS )

Arguments

PARAM = CHARACTER ( ) (Given)
The name of the parameter.
MAXVAL = INTEGER (Given)
The maximum number of values required. A PAR__ERROR status is returned when the number of values requested is less than one.
OPTS = CHARACTER ( ) (Given)
The list of acceptable options for the values obtained from the parameter. Items should be separated by commas. The list is case-insensitive.
VALUES( MAXVAL ) = CHARACTER ( ) (Returned)
The selected options from the list in the order supplied to the parameter. They are in uppercase and in full, even if an abbreviation has been given for the actual parameter.
ACTVAL = INTEGER (Returned)
The actual number of values obtained.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

The search for a match of each obtained character value with an item in the menu adheres to the following rules.