141 W445ngsc415443
141 W445ngsc415443
141 W445ngsc415443
RCVDETACH CONFIRM_DEALLOCATE, There are no ICF operations or functions that map to this
TAKE_COMMIT_DEALLOCATE verb.
RCVCTLDTA CONTROL_DATA_COMPLETE,
CONTROL_DATA_TRUNCATED, MC_REQUEST_TO_SEND: The
CONTROL_DATA_INCOMPLETE MC_REQUEST_TO_SEND verb tells the remote program
that the local program requests to enter send state for the
RCVTKCMT TAKE_COMMIT, TAKE_COMMIT_SEND, conversation. The conversation is changed to send state
TAKE_COMMIT_DEALLOCATE when the local program receives a SEND indication from the
remote program.
Data Received with the Program Start Request: The fol-
lowing list shows ICF return codes with the corresponding The MC_REQUEST_TO_SEND verb is specified by using a
WHAT_RECEIVED values for the MC_RECEIVE_AND_WAIT request-to-write function. The request-to-write function is
verb. These ICF return codes also indicate that data was specified in DDS by using the RQSWRT keyword and in
received with the program start request. system-supplied formats with a $$RCD. The DDS format
ICF Return Code WHAT_RECEIVED Values may also include the INVITE keyword. The system-supplied
format has an implicit invite specified. Note that the invite
0002 CONTROL_DATA_COMPLETE
function also performs the MC_POST_ON_RECEIPT verb.
0006 CONTROL_DATA_COMPLETE, SEND
RESOURCE
00111 CONTROL_DATA_COMPLETE Refer to “Specifying the Resource Parameter” on
0013 CONTROL_DATA_COMPLETE, page C-3.
CONFIRM_SEND
RETURN_CODE
0018 CONTROL_DATA_COMPLETE, CONFIRM Information is returned as follows:
001D CONTROL_DATA_COMPLETE, Messages
CONFIRM_DEALLOCATE
Return codes in the communications device
0202 CONTROL_DATA_COMPLETE dependent area of the I/O feedback area
0206 CONTROL_DATA_COMPLETE, SEND
02111 CONTROL_DATA_COMPLETE MC_SEND_DATA: The MC_SEND_DATA verb sends
data or control information to the remote program. This oper-
0213 CONTROL_DATA_COMPLETE, ation is verb is used with a write operation.
CONFIRM_SEND
RESOURCE
0218 CONTROL_DATA_COMPLETE, CONFIRM
Refer to “Specifying the Resource Parameter” on
021D CONTROL_DATA_COMPLETE, page C-3.
CONFIRM_DEALLOCATE
DATA
0302 CONTROL_DATA_COMPLETE Application program's data buffer.
0306 CONTROL_DATA_COMPLETE, SEND
LENGTH
03111 CONTROL_DATA_COMPLETE For DDS, implicit by the record format or specified
0313 CONTROL_DATA_COMPLETE, explicitly by the VARLEN keyword.
CONFIRM_SEND For system-supplied formats, the first 4 bytes of the
0318 CONTROL_DATA_COMPLETE, CONFIRM output buffer of the application program contain the
length of data to send.
031D CONTROL_DATA_COMPLETE,
CONFIRM_DEALLOCATE MAP_NAME
Indicates that map name processing is to be performed.
3422 CONTROL_DATA_TRUNCATED
For DDS use the FMTNAME keyword and specify
If the conversation has a synchronization level of commit, the Basic Conversation Verbs
fail function may cause the system to roll back the protected
LUW. If the fail function is in response to a commit operation, ALLOCATE: The LU type 6.2 verb ALLOCATE builds a
the system rolls back the protected LUW. If the fail function conversation (AS/400 transaction) to a named partner
is in response to a prepare-for-commit function, the system program at another logical unit (LU). For the AS/400 APPC
does not roll back the protected LUW. support, it is specified by the combination of the acquire
operation and evoke function.
RESOURCE
Note: Some of the information used by these operations is
Refer to the “Specifying the Resource Parameter” on
specified on commands that run before the applica-
page C-3.
tion program issues these requests.
RETURN_CODE
LU_NAME
Information is returned as follows:
RMTLOCNAME, DEV, RMTNETID, and LCLLOCNAME
Messages parameters on the ADDICFDEVE, CHGICFDEVE, and
OVRICFDEVE commands.
Return codes in the communications device
dependent area of the I/O feedback area MODE_NAME
MODE parameter on the ADDICFDEVE, CHGICFDEVE,
REQUEST_TO_SEND_RECEIVED
and OVRICFDEVE commands.
Communications device dependent area of the I/O feed-
back area as follows: TPN
For DDS, the remote program and library name are
Request-to-write indicator
specified following the EVOKE keyword.
Minor return code of 10 for major return code of 00
For system-supplied formats, the remote program name
is in positions 1 through 8 of the data buffer of the
source program and the library name is positions 25
through 32 of the same buffer.
TYPE
(BASIC_CONVERSATION/ MAPPED_CONVERSATION)
To allocate a basic conversation, the CNVTYPE param-
RETURN_CONTROL RESOURCE
WHEN_SESSION_ALLOCATED is always used. Refer to “Specifying the Resource Parameter” on
CONVERSATION_GROUP_ID is not supported. page C-3.
SYNC_LEVEL(NONE/CONFIRM/SYNCPT) RETURN_CODE
Information is returned as follows:
PIP
DEALLOCATE: An AS/400 program starts deallocation by
For DDS, the parameter data can be specified on the
issuing an output operation with detach function. If the
EVOKE keyword.
program is a source program, then an end-of-session func-
For system-supplied formats, the parameter data is tion, release, or close operation must follow the detach func-
specified in positions 57-xxxx of the source program's tion to complete the deallocation. If the program is a source
data buffer. program and the conversation has a synchronization level of
*COMMIT, a commit operation must follow the detach func-
RESOURCE
tion and precede the end-of-session function, release opera-
Refer to “Specifying the Resource Parameter” on
tion, or close operation.
page C-3.
Messages RESOURCE
Refer to “Specifying the Resource Parameter” on
page C-3.
RESOURCE Messages
Refer to “Specifying the Resource Parameter” on Return codes in the communications device
page C-3. dependent area of the I/O feedback area
RETURN_CODE
Information is returned as follows: RECEIVE_AND_WAIT: The RECEIVE_AND_WAIT verb
waits for information to arrive on the specified conversation
Messages
and then receives the information. If information is already
Return codes in the communications device available, the program receives it without waiting. The infor-
dependent area of I/O feedback area mation can be data, conversation status, or a request for
confirmation. To perform a RECEIVE_AND_WAIT the
PREPARE_TO_RECEIVE: The AS/400 program issues a READ operation to a specific
PREPARE_TO_RECEIVE verb changes the conversation program device name.
from send state to receive state so that the program can RESOURCE
receive data. This verb is performed in combination with a Refer to “Specifying the Resource Parameter” on
SEND_DATA operation when an allow write or invite function page C-3.
is specified on a DDS output format, or for a system-supplied
format that also specifies an invite (for example, $$SEND). FILL(LL)
Note that the invite function also performs the VARBUFMGT DDS keyword not specified. Implicit when
POST_ON_RECEIPT verb. using system-supplied formats.
RESOURCE FILL(BUFFER)
Refer to “Specifying the Resource Parameter” on VARBUFMGT DDS keyword specified. Not supported
page C-3. when using system-supplied formats.
TYPE(SYNC_LEVEL) LENGTH
Use if conversation was allocated with Requested length is the length of the record format area.
SYNLVL(*COMMIT). It can also be used in place of Returned length is located in the first 2 bytes of the input
TYPE(CONFIRM) for SYNLVL(*CONFIRM) conversa- buffer and in the communications device dependent area
tions or in place of TYPE(FLUSH) for SYNLVL(*NONE) of the I/O feedback area.
conversations.