Running your C programs in CICS
After you write your program in C, you need to translate, compile, and link-edit it before you can run it.
These examples show the necessary steps to translate, compile, and link-edit your program. The REXX JCL and CLISTs in these examples are not provided with QMF, but you can copy them from here, altering them to suit your needs.
- The interface communications area DSQCOMMC must be available to the compile step or copied into your program.
- The QMF interface module DSQCICX must be available during the link-edit step of your program.
- Programs written in C must be link-edited with AMODE=31.
//sampleC JOB // EXEC PROC=DFHYITDL //TRN.SYSIN DD * . . . Your program or copy of QMF sample DSQABFC . . . /* //* Provide Access to QMF Communications Macro DSQCOMMC //C.SYSLIB DD DSN=QMF1310.SDSQSAPE,DISP=SHR //* Allocation for target library //LKED.SYSLMOD DD //* Allocation for QMF load library //LKED.QMFLOAD DD DSN=QMF1310.SDSQLOAD,DISP=SHR //LKED.SYSIN DD * INCLUDE QMFLOAD(DSQCICX) NAME sampleC(R) /*