Please enable JavaScript to view this site.

ESL Documentation

Field Types

Forces all buffered information to be sent to the partner program on another machine. APPCSendString buffers information when the default settings are used.

Note:        If you are using the automatic interface, this subroutine is not normally needed because the conversation state is normally changed automatically. An example of when this subroutine is needed is to force remaining buffered data to be sent in a situation where the last call to APPCSendString did NOT have a SEND_IND parameter with a value of APPC_Flush.

Declaration:

subroutine APPCFlush( 
integer:CONVERSATION_ID )

library "eslappc"

Arguments:

CONVERSATION_ID is an integer variable containing the conversation identifier (handle) for the APPC conversation returned by either APPCStart or APPCAcceptStart.

Errors:

APPC_NORMAL_COMPLETION

Normal completion.

APPC_ERR_OUT_OF_MEMORY

Out of memory.

APPC_ERR_INV_CONV_ID

Invalid argument:CONVERSATION_ID

APPC_ERR_UNEXPECTED_ERROR

Unexpected error encountered.

Example:

call APPCSendString (ConvID,    # Handle from Start/AcceptStart
                     String1,   # First data
                     NoConvert, # Do not convert string
                     None,      # Add Send to buffer
                     More )     # More to send
 

call APPCSendString (ConvID,    # Handle from Start/AcceptStart
                     String2,   # Second data
                     NoConvert, # Do not convert string
                     None,      # Add Send to buffer
                     More )     # More to send
 

call APPCFlush ( ConvID )       # Send all data in buffer