RECEIVE
When using this statement, you must remember to code IMFEXEC with the RECEIVE command. If you do not, you might cause the TSO/E RECEIVE command to be invoked.
Command | Parameters |
---|---|
RECEIVE | SESSION(sessionID)[TIMEOUT(10|n)] |
The following table describes the parameters:
Parameter | Function | Notes |
---|---|---|
SESSION | ID name of the session | This session identifier is returned initially through the LOGON command. |
TIMEOUT | Time to wait, in seconds, for data to arrive | Numeric value in the range 0-9999 |
Condition codes are listed in the following table:
Value | Description |
---|---|
0 | Command was executed successfully; data was received. |
4 | No data was available during the given interval. |
Example
This command attempts to receive another data packet from the session that is identified by the CNMSESS variable.
"IMFEXEC RECEIVE SESSION("CNMSESS")"
CLIST example: