asyj002 - Asynchronous calls with ECI_GET_REPLY_WAIT or ECI_GET_REPLY loop

asyj002 is a Java program that on each requested iteration issues an asynchronous call (without callback or message qualifier). This is followed either by an ECI_GET_REPLY_WAIT (if the -wait option is specified as an override), or an ECI_GET_REPLY (the default). In the latter case up to nine ECI_GET_REPLY calls are issued to obtain the response from the server. Between each attempt to receive this reply there is a one second delay to allow for network traffic or a busy server.

With ECI_GET_REPLY calls the output shows which call obtained the response. For example, "eci_get_reply #3" means that the response was obtained on the third attempt. If the result shows "eci_get_reply #9" with a CICS Rc of -5, this indicates that the response was not received after nine attempts. After all iterations have run, a banner displays the number of successful iterations where asynchronous calls returned a positive reply.

Prior to each asynchronous call the commarea is initialised to 18 dashes. The server returns the current date and timestamp. The default CICS server program is the supplied SRVTIME which is compatible on all CICS servers. If desired, a different server program can be supplied as an input parameter to this application.

This program contains no data conversion for the commarea. Data conversion should be carried out on the server, if required.

Parameters can be overridden via command line.

Issue "asyj002 -?" for help and default settings.

Sample Input

java jgtest.eci.asyj002 -i 3

The sample input data implies a default of ECI_GET_REPLY. The sample output data shows that a response to each ECI_SYNC call was received on the second attempt.

Sample Output

asyj002 - ECI Asynchronous Call Testing -j JGate -> hollings -r JGate port -> 2006 -list list systems only -> false -s CICS server -> (not specified) -a application -> SRVTIME -wait eci_get_reply_wait -> false -i # iterations -> 3 -u userid -> SYSAD -p password -> SYSAD -d delay -> 0 seconds -! debug -> false -? Display settings only --- asyj002 started 12/06/98 07:06 --- Successfully created JavaGateway connection --- --- Using CICS Region: NETBTCLR # Call Commarea-Data Length CICS Rc Abend -- ------------------ ----------------- ------ ------- ----- 1 Async call -> ----------------- 18 0 1 eci_get_reply #2 12/06/98 08:06:34 18 0 2 Async call -> ----------------- 18 0 2 eci_get_reply #2 12/06/98 08:06:35 18 0 3 Async call -> ----------------- 18 0 3 eci_get_reply #2 12/06/98 08:06:36 18 0 --- Successfully closed JavaGateway connection --- --- asyj002 completed 12/06/98 07:06 --- Calls successful ... 6 out of 6 --- Iterations run ..... 3 out of 3

History log: