SEND function

DFHZARL performs the following actions:
  1. Checks the user state machine (DFHZUSRM).
  2. Checks the LL count and maintains a record of the outstanding LL count.
  3. If the command is SEND LAST, INVITE, or CONFIRM, and the outstanding LL count is nonzero, issues an error message.
  4. Sets the user state machine (DFHZUSRM).
  5. Issues RECEIVE IMMEDIATE requests, as required, to pick up any negative responses sent by the partner program.

The caller must specify WAIT in the request to force the data to be sent immediately. SEND CONFIRM has an implicit WAIT, and control is not returned until a response has been received, when the state machine is set.

For a SEND request with WAIT, DFHZARL then:
  1. Sets the user state machine (DFHZUSRM), request=WAIT.
  2. Invokes DFHZSDL for transmission of the data in application area or send buffer.
For a SEND request without WAIT, DFHZARL then:
  1. If there is sufficient space in the send buffer for all the data, transfers the data from the application area to the send buffer, and returns control to the caller.
  2. Saves the INVITE and LAST indicators.
  3. If the send buffer cannot hold all the data, invokes DFHZSDL for an implicit SEND.
If data or a CONFIRM command was sent (or both), DFHZARL then:
  1. Checks for a signal received.
  2. Checks for exception (negative) response received. If found, calls DFHZERH to handle the error. On return, sets the state machine.
  3. Returns results to the caller.

When an implicit send is required, DFHZARL passes the data to DFHZSDL for transmission, passing the address of the data in the send buffer and in the application buffer. The total length of data passed to DFHZSDL is a multiple of the request unit size. On return to DFHZARL, the remaining data is transferred to the send buffer. The parameters passed to DFHZARL, such as INVITE and LAST, are not transmitted by DFHZSDL.



dfhs3c00268.html | Timestamp icon Last updated: Monday, 5 June 2017