Directives

DEF NAR

Define Number of ARGs

Format

DEF NAR=value

Where:

value

Number of arguments. Must be between 0 (no arguments) and the higher of the original number of arguments on the Command line or the number defined using the DEF ARG directive. An out-of-range value results in an Error #41: Invalid integer encountered.

Description

The DEF NAR directive is used to reduce the number of arguments that a program sees. This changes the value returned by the NAR system variable.

(The DEF NAR directive was added in PxPlus 2017.)

See Also

DEF ARG Define Temporary ARG Value
NAR Number of Arguments, Start PxPlus
ARG( ) Get/Process Arguments