epij123 - Traditional Java EPI Issuing CECI Commands

This application uses traditional Java EPI calls (rather than the Higher Level Interface (HLI) to the EPI as used in epihceci) to issue a CECI LINK PROGRAM command.

The program runs as follows:

  1. addTerminal
  2. startTran CECI with data "link program(srvtime) comm(&dfhw) len(18)"
  3. getEvent
  4. reply
  5. getEvent
  6. extract from returned data the date and timestamp.
  7. reply
  8. getEvent
  9. delTerminal
  10. getEvent

The default program is SRVTIME which returns the time and datestamp in the commarea to the client application.

Parameters can be overridden via command line.

It is important that a model terminal definition suitable for a CICS Client is available on the CICS server. For example:

CICS for OS/2 server
DFLT (a supplied model terminal definition)
CICS for AIX server
ibm-cics-client (a pre-defined model terminal definition)
CICS for OS/390 (Hursley Test Systems)
MT1A (a model terminal definition that requires defining)

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

Sample Input

java jgtest.epi.epij123 -j local: -s AlsKix -model ibm-cics-client

Sample Output

epij123 - Traditional Java EPI Issuing CECI Commands -j JGate -> local: -r JGate port -> 2006 -list list systems only -> false -model model/device type -> ibm-cics-client -s CICS server -> AlsKix -a application -> SRVTIME -i # iterations -> 1 -u userid -> SYSAD -p password -> SYSAD -d delay -> 0 seconds -verbose verbose -> false -! debug -> false -? Display settings only --- epij123 started 23/07/98 12:05 --- Successfully created JavaGateway connection --- --------------------------------------------------- epij123 --- Iteration: 1 of 1 --------------------------------------------------- --> epi_add_terminal 0 Netname: SQAAAAHH --> epi_start_tran 0 CECI LINK PROG(SRVTIME) ... --> epi_get_event 17 epi_event_send --> epi_get_event 0 epi_event_send --> epi_get_event 0 epi_event_converse --> epi_reply 0 <enter> --> epi_get_event 17 epi_event_send Data extracted --> Commarea: 23/07/98 13:05:17 --> epi_get_event 0 epi_event_send --> epi_get_event 0 epi_event_converse --> epi_reply 0 <F3> to exit CECI --> epi_get_event 17 epi_event_send --> epi_get_event 0 epi_event_send --> epi_get_event 0 epi_event_end_tran --> epi_del_terminal 0 Netname: SQAAAAHH --> epi_get_event 0 epi_event_end_term --> endReason 0 epi_end_signoff --- Successfully closed JavaGateway connection --- --- epij123 completed 23/07/98 12:05 --- Calls successful ... 1 out of 1 --- Iterations run ..... 1 out of 1

History log: