Example: Define a parameter

This example shows how to define a parameter used in calling an application.

The following example defines a parameter OETYPE for a command to call an order entry application.

PARM   KWD(OETYPE)  TYPE(*CHAR)  RSTD(*YES) +
       VALUES(DAILY WEEKLY MONTHLY)  MIN(1) +
       PROMPT('Type of order entry:')

The OETYPE parameter is required (MIN parameter is 1) and its value is restricted (RSTD parameter is *YES) to the values DAILY, WEEKLY, or MONTHLY. The PROMPT parameter contains the prompt text for the parameter. Since no LEN keyword is specified and TYPE(*CHAR) is defined, a length of 32 is the default.

Related tasks
Create commands