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.
OUTPUT a; OUTPUT name, account;
To use the 3270 Script window’s Statements menu to define an OUTPUT statement, follow this procedure:
The system displays the Parameters Definition window.
The system displays the Enter Data window.
The Parameters Definition displays the new output parameter in the Parameters list.
The OUTPUT statement is added at the beginning of the script following the INPUT statement.