CICS/ESA 4.1 Application Server

The MVS Internet Connection Server CICS/ESA EXCI Interface


This page gives guidance on the Installation and the Execution of the CICS EXCI CGI sample program.

To use the CICS EXCI CGI sample you need to :

  1. Save this HTML file into the directory from which your Web Server retrieves HTML pages giving it the file extension 'html'.
  2. Retrieve CICSESA.gif into the directory from which your Web Server retrieves images.

    Note: Remember to use 'binary' mode where applicable when transferring gif images.

  3. Retrieve EXCICGI.c to your MVS 5.2.2 system and follow the instructions below.
  4. Adapt this HTML page as described below.

This page provides access to a sample CGI program that invokes CICS by using the CICS External Call Interface or EXCI. The EXCI was introduced in CICS/ESA version 4.1 and is supported by all subsequent versions. The use of the EXCI interface is documented in the CICS/ESA External CICS Interface manual which is document number SC33-1390-00. Section 7.4 of the EXCI manual describes the operation of the EXCI sample programs as well as the installation steps required to use them. You should read AT LEAST this section of the EXCI manual.

Prior to running the MVS ICS CICS EXCI CGI sample you MUST follow the installation steps documented in the manual above and verify the installation as described.


Installation Notes

To adapt this page edit the HTML source and replace 'gif_path' with the directory path from which your Web Server will retrieve CICSESA.gif and replace 'server_name' with the DNS name or IP address of you Web Server.

EXCICGI.c is the C program which implements the EXCI CGI function. This program must be translated with the CICS translator specifying the EXCI option.

EXCICGI.c can be complied and link edited from within the OpenEdition environment. To achieve this ensure that the OpenEdition compiler, C89, is correctly set up and follow these steps :

  1. Copy the translated EXCICGI.c source into your working HFS directory.
  2. Copy the C language EXCI copybook DFHXCPLH into your working HFS directory as dfhxcplh.h
  3. Create a file named 'Makefile' in your working HFS directory and using OEDIT edit following make commands into it by editing away all the other HTML source of this page.

    Note : if you use a 'cut & paste' type operation instead of an edit, as suggested above, to extract the Makefile commands, ensure that the TAB boundaries are preserved as otherwise errors will be generated during the Make processing.

    #Makefile to compile the CICS CGI sample code.
    
    CC=c89
    AR=ar
    CFLAGS=-O -W0,"LANGLVL(EXTENDED)"
    LIB1=-L./
    LIB2=-lc -lm -l"//'CICS.HLQ.SDFHEXCI'"
    
    all: excicgi
    
    excicgi: excicgi.o
    	$(CC) -o excicgi $(LIB1) excicgi.o	$(LIB2)
    
    clean:
    	rm -f *.o *.a excicgi
    
    
  4. Change 'CICS.HLQ' within the Makefile to be the high level qualifier used for the CICS datasets in your environment.
  5. Issue the 'make' command from the shell command line in your working HFS directory to perform the compile.
  6. Copy, using the cp command, the executable produced 'excicgi' to the HFS directory from which your Web Server will resolve CGI requests, this is usually the cgi-bin directory.
  7. Ensure that the CICS EXCI Runtime function is accessible from the OpenEdition environment, the most reliable way of ensuring this is to place the modules from the Library SDFHEXCI into the LPA.

Note : Help on copying files between TSO and the HFS can be found in the MVS/ESA OpenEdition MVS User's Guide (SC23-3013-02).

You are now ready to drive the EXCICGI program. Initialise CICS and enable the EXCI environment as described in the CICS/ESA External CICS Interface manual. Point your Web Browser at this page initially, and use the 'links' to invoke EXCICGI. Remember to specify the APPLID of your CICS system in upper case when prompted to do so by a fill out form.

Execution

Click here to continue with the execution of the CGI sample