ContentsIndexPreviousNext

C$ASYNCPOLL

C$ASYNCPOLL 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(9)

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 only works with AcuConnect.