Compiling Programs

To compile and link a CICS® Foundation Class program you need access to the program source, a compiler, header files and a dynamic link library.

You need access to the following items:
  • The source of the program you are compiling
    Your C++ program source code needs #include statements for the Foundation Class headers and the Foundation Class main() program stub:
    #include "icceh.hpp"
    #include "iccmain.hpp"
  • The IBM® C++ compiler
  • The Foundation Classes header files (see Header files )
  • The Foundation Classes dynamic link library (DLL). The ICCFCDLL module is in CICSTS54.CICS .SDFHLOAD.

Note that, when using the Foundation Classes, you do not need to translate the "EXEC CICS " API so the translator program should not be used.

The following sample job statements show how to compile, prelink and link a program called ICC$HEL :

					//ICC$HEL JOB 1,user_name,MSGCLASS=A,CLASS=A,NOTIFY=userid
					//PROCLIB JCLLIB ORDER=(
					CICSTS54.CICS
					.SDFHPROC)
					//ICC$HEL EXEC ICCFCCL,INFILE=
					indatasetname
					(ICC$HEL),OUTFILE=
					outdatasetname
					(ICC$HEL)
					//