Debug and/or run the ECI client and server programs.
-
Ensure that the CTGDEMO Enterprise Server is still running.
-
Ensure that the CTG Client/daemon is running. How you do this will depend upon what version of CTG you are running, and we
advise you to consult the relevant IBM documentation. The version of CTG we used to develop this demonstration was 8.1.0.1
and we started the CTG client as a Windows service via
Start > Control Panel > System and Security > Administrative Tools > Services and manually starting the
IBM CICS Transaction Gateway service. In other versions of CTG, you can start the CTG Client via
Start > All Programs > IBM CICS Transaction Gateway > Start Client.
-
Verify that the CTG Client is operational by clicking
Start > All Programs > IBM CICS Transaction Gateway > CICS Terminal.
A window entitled
CICSTERM - CICS 3270 Terminal Emulator opens - it is blank apart from the bottom line, which displays some status codes surrounding the word
CTGDEMO. Close the CICS terminal.
-
In Server Explorer, expand
Local[localhost:86], right-click
CTGDEMO, select
Associate with project and make sure that a check appears at the left of the solution name - CTGDEMO.
-
In COBOL Explorer, expand
CTGCLI > COBOL Programs > cbcli and click the name of the
eci-call program. Then select
Run > Debug.
The
eci-call console application appears - it is a blank window containing the following message:
Enter the message you want to send to the console (enter only to terminate program)
==>
-
Enter your message at the prompt:
Hello World ECI!
-
To see the message within the Enterprise Server Administration console:
- In Server Explorer, right-click
Micro Focus Servers, and select
Open Administration Page.
- Click
Details in the
Status
column corresponding to CTGDEMO.
- Click the
Diagnostics tab.
- Click the
ES Console tab.
- Click
Refresh and scroll to the bottom of the listed log entries.
The last entry will display the
Hello World ECI! message, and will resemble:
41 130109 10413717 4516 CTGDEMO CASOP0000I From (SYSAD,-992,CPMI) Hello World ECI! 10:41:37