INPUT prompt statement

Use the INPUT statement to specify the parameters that are passed to a prompt. An input parameter is a variable that receives data from the calling state table or prompt. Input variables cannot be assigned.

If used, the INPUT statement must appear at the beginning of the prompt.

Once you have defined input parameters, you can Select them for use in other statements.

Syntax



Example

INPUT NUMBER newmsg, STRING custname;

The parameters newmsg and custname are passed from the calling state table to the prompt for use in the prompt.

Procedure

Use the following procedure to define an INPUT statement:

  1. Selecting the INPUT statement: Click Statements —> Input Parameters.

    The system displays the Input Parameters window.

  2. Click Add.

    The system displays the Add Variable window.

  3. Defining the statement: If the parameter is alphanumeric, click String and type the variable name. If the parameter is numeric, click Number and type the variable name.
    Note: The first character of the variable name must be a letter.
  4. Click OK.
  5. Repeat Steps 2 through 4 for each required input parameter.
  6. Deleting parameters: To delete a parameter, select the field value then click Delete.
  7. Adding the statement to the prompt: Click Close.

    The INPUT statement is added at the beginning of the prompt.

  8. Selecting input parameters: To add a defined input parameter to your prompt at the cursor position, click Statements —> Input Parameters to Select the parameter you want.