ecij123 - Three simple calls to test the CICS Gateway for Java
The following calls are tested:
- - eci_sync
- - eci_async (no callback)
- - eci_get_reply_wait
This application issues three simple ECI calls that can be iterated
ad nauseum. The first is an ECI_SYNC call. This is followed by an
ECI_ASYNC call (no callback) to which an ECI_GET_REPLY_WAIT awaits
the response.
Prior to each ECI call the commarea is initialised to
18 dashes. The server returns the current date and timestamp for
the ECI_SYNC and ECI_GET_REPLY_WAIT calls.
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 "ecij123 -?" for help and default settings.
Sample Input
java jgtest.eci.ecij123 -j local: -i 2
Sample Output
ecij123 - Three Simple ECI Calls
-j JGate -> local:
-r JGate port -> 2006
-list list systems only -> false
-s CICS server -> (not specified)
-a application -> SRVTIME
-i # iterations -> 2
-u userid -> SYSAD
-p password -> SYSAD
-d delay between iterations -> 0 seconds
-x exit on ECI error -> false
-! debug -> false
-? Display settings only
--- ecij123 started 12/06/98 12:08
--- Successfully created JavaGateway connection ---
--- Using CICS Region: NETBTCLR
# Call Commarea-Data Length CICS Rc Abend
-- ------------------ ----------------- ------ ------- -----
1 eci_sync 12/06/98 13:08:20 18 0 null
1 eci_async ----------------- 18 0 null
1 eci_get_reply_wait 12/06/98 13:08:21 18 0 null
2 eci_sync 12/06/98 13:08:21 18 0 null
2 eci_async ----------------- 18 0 null
2 eci_get_reply_wait 12/06/98 13:08:21 18 0 null
--- Successfully closed JavaGateway connection ---
--- ecij123 completed 12/06/98 12:08
--- Calls successful ... 6 out of 6
--- Iterations run ..... 2 out of 2
History log:
- Written : Apr 97 - Alan Hollingshead
- Updated : Apr 98 - uses common classes