C$ASYNCPOLL

C$ASYNCPOLL is used only with AcuConnect. It checks the status of the server program while the client is running.

Usage

CALL "C$ASYNCPOLL" 
    USING HANDLE-OF-CALL, STATE-OF-CALL, PARAMETER(S)

Parameters

HANDLE-OF-CALL USAGE HANDLE Contains the handle of the CALL previously run with C$ASYNCRUN.
STATE-OF-CALL PIC S9 Contains a value of "0" if the run is not completed, or 1 if the run is completed.
PARAMETER(S) Any COBOL data type (optional)    Contains a parameter of the CALL. You may include as many parameters as you choose, separated by a space or comma, to define the CALL. The list of parameters used in C$ASYNCPOLL must match the list of parameters used in C$ASYNCRUN.

Comments

C$ASYNCPOLL tells AcuConnect to query the server about the status of the remote application. AcuConnect returns a status that you can DISPLAY on the client. If the status is 1 or CALL completed, C$ASYNCPOLL terminates the connection with the remote application. This library routine works only with AcuConnect.