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 :
Note: Remember to use 'binary' mode where applicable when transferring gif images.
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.
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 :
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
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.