CALLing C$ASYNCRUN

If desired, you call the C$ASYNCRUN library routine along with the remote application name to achieve asynchronous processing. The syntax for this CALL is:

CALL "C$ASYNCRUN" using handle-of-call program_name parameter-1
parameter-2

where:

handle-of-call is a handle of the CALL defined in Working-Storage
program_name    is the name of the CALLed program
parameter is a parameter of the CALL

For example, you might have the following line in the Working-Storage section of your client program:

01 h-call-prog2     handle.

and the following in the Procedure Division section:

CALL "C$ASYNCRUN" using h-call-prog2 "prog2.acu" customer-info.

C$ASYNCRUN tells AcuConnect to allow the client application to continue processing, even while the server application is active.