Receive data on an MRO conversation.
RECEIVE (MRO) >>-RECEIVE--+---------------+--+-INTO(data-area)-+--------------> '-SESSION(name)-' '-SET(ptr-ref)----' >--+-LENGTH(data-area)--+--+------------------------+-----------> '-FLENGTH(data-area)-' +-MAXLENGTH(data-value)--+ '-MAXFLENGTH(data-value)-' >--+------------+--+-------------+----------------------------->< '-NOTRUNCATE-' '-STATE(cvda)-'
Conditions: EOC, INBFMH, INVREQ, LENGERR, NOTALLOC, TERMERR
RECEIVE receives data from the conversation partner in an MRO conversation.
If you specify the INTO option, but omit the MAXLENGTH option, the argument for the LENGTH option must be a data area that specifies the maximum length that the program accepts. If the value specified is less than zero, zero is assumed.
If the length of the data exceeds the value specified, but the NOTRUNCATE option is not specified, the data is truncated to that value and the LENGERR condition occurs. When the data has been received, the data area for the LENGTH option is set to the original length of the data.
If you specify the INTO option, but omit the MAXLENGTH option, the argument must be a data area that specifies the maximum length that the program accepts. If the value specified is less than zero, zero is assumed.
If the length of the data exceeds the value specified, but the NOTRUNCATE option is not specified, the data is truncated to that value and the LENGERR condition occurs. When the data has been received, the data area is set to the original length of the data.
If you specify the SET option, the argument must be a data area. When the data has been received, the data area is set to the length of the data.
For a description of a safe upper limit, see LENGTH options in CICS commands.
If the value specified is less than zero, zero is assumed.
If the length of data exceeds the value specified and the NOTRUNCATE option is not present, the data is truncated to that value and the LENGERR condition occurs. The data area specified in the LENGTH option is set to the original length of data.
If the length of data exceeds the value specified and the NOTRUNCATE option is present, CICS retains the remaining data and uses it to satisfy subsequent RECEIVE commands. The data area specified in the LENGTH option is set to the length of data returned.
If this option is omitted, the value indicated in the LENGTH option is assumed.
If DATALOCATION(ANY) is associated with the application program, the address of the data can be above or below the 16MB line.
If DATALOCATION(BELOW) is associated with the application program, and the data resides above the 16MB line, the data is copied below the 16MB line, and the address of this copy is returned.
If TASKDATAKEY(USER) is specified for the running task, and storage protection is active, the data returned is in a user-key. If TASKDATAKEY(CICS) is specified and storage protection is active, the data returned is in a CICS-key.
If you specify the SET option, the argument for the LENGTH option must be a data area. When the data has been received, the data area is set to the length of the data.
Default action: ignore the condition.
Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
A CANCEL TASK request by a user node error program (NEP) may cause this condition if the task has an outstanding terminal control request active when the node abnormal condition program handles the session error.
Default action: terminate the task abnormally with abend code ATNI.