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
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
History log: