CICS Manual do Usuário - RETURN
Returns program control.
Sintaxe:
Descrição:
RETURN returns control, in addition to COMMAREA, from an application program to either an application program at the next higher logical level, or CICS.
When the command is issued in a linked-to program that is not at the highest logical level, control passes back to the program that issued the LINK command and resides one logical level higher than the program that is returning control.
If you use RETURN without any parameters, both control and the COMMAREA are handed back to the calling program.
If the task is associated with a terminal, the TRANSID option can be used to specify the transaction identifier for the next transaction that is to be associated with that terminal. The transaction identifier comes into effect only after the highest logical level has used the RETURN command to give control to CICS, and input is received from the terminal. Any input that is entered from the terminal, apart from an attention key, is interpreted entirely as data. You can use TRANSID without COMMAREA when returning from any link level, but you should be aware that it might be overridden on a later RETURN command. If a RETURN command fails at the highest logical level because of an invalid COMMAREA, the TRANSID becomes null.
When the command is issued in a program at the highest logical level, control returns to CICS. If the task is associated with a terminal, the TRANSID option can be used to specify the transaction identifier for the next transaction that is to be associated with that terminal; this causes subsequent input that is entered from the terminal to be interpreted entirely as data. In addition, the COMMAREA option can be used to pass data to the new task that is to be started. For further information about passing data to other programs, see the TXSeries for Multiplatforms Application Programming Guide.
The LENGTH option specifies the length of the data that is to be passed. The specified length must not be greater than the length of the data area that is specified in the COMMAREA option; otherwise, the results are unpredictable. The valid range for the COMMAREA length is 1 through 32767 bytes. If the length that is provided is outside this range, zero is assumed. The COMMAREA, LENGTH, and IMMEDIATE options can be used only when the RETURN command is returning control to CICS; otherwise, the INVREQ condition occurs.
No resource security checking occurs on the RETURN TRANSID command. However, transaction security checking is still available when CICS attaches the transaction that is returned in the TRANSID option.
Opções:
Condições:
Informações relacionadas: