Previous Topic Next topic Print topic


Run the ECI demonstration

Debug and/or run the ECI client and server programs.
  1. Ensure that the CTGDEMO Enterprise Server is still running.
  2. 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.
  3. 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.
  4. In Server Explorer, expand Micro Focus Servers > localhost , right-click CTGDEMO, select Associate with project and make sure that a check appears at the left of the solution name - CTGDEMO.
  5. In Solution Explorer, right-click the name of the CTGCLI project and select Set as Startup Project.
  6. Select Debug > Start Debugging, and in the selection dialog that appears, double-click the eci-call program.
    The selection dialog closes and 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)
    ==>
  7. Enter your message at the prompt: Hello World ECI!
  8. To see the message within the Enterprise Server Administration console:
    • In Server Explorer, right-click Micro Focus Servers, and select Administration.
    • 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  
Previous Topic Next topic Print topic