Compiling a CICS Foundation Class program
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
#includestatements for the Foundation Class headers and the Foundation Classmain()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 CICSTS56.CICS .SDFHLOAD.
Note that, when using the Foundation Classes, you do not need to translate the "EXEC CICS " API before compile.
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=(
CICSTS56.CICS
.SDFHPROC)
//ICC$HEL EXEC ICCFCCL,INFILE=
indatasetname
(ICC$HEL),OUTFILE=
outdatasetname
(ICC$HEL)
//