OUTPUT

Use the OUTPUT statement to specify the parameters to be returned to the calling state table or script.

If used, the OUTPUT statement must appear at the beginning of the script, following the INPUT statement if it exists.

Syntax


This picture shows the syntax of the OUTPUT statement.

Examples

OUTPUT a;
OUTPUT name, account;

Procedure

To use the 3270 Script window’s Statements menu to define an OUTPUT statement, follow this procedure:

  1. From the Welcome window, click on Applications —> 3270 Servers
  2. Selecting the OUTPUT statement : Click Statements —> Parameters.

    The system displays the Parameters Definition window.

  3. Defining output parameters : Click the button next to Output Parameters, then Add.

    The system displays the Enter Data window.

  4. Type a variable name for the output parameter, then click OK.

    The Parameters Definition displays the new output parameter in the Parameters list.

  5. Repeat Steps 3 and 4 for each required output parameter.
  6. Deleting parameters : If you need to delete any output parameters, click the parameter in the Parameters list, then Delete.
  7. Adding the statement to the script : Click OK.

    The OUTPUT statement is added at the beginning of the script following the INPUT statement.