To create a program that includes EXEC CICS statements and MQI calls, perform these steps:
Include CICSOPT(*NOGEN) in the CRTCICSC or CRTCICSCBL command. This halts processing to enable you to include the appropriate CICS and WebSphere MQ service programs. This command puts the code, by default, into QTEMP/QACYCICS.
An example of such code follows (it compiles the shipped CICS sample program):
CRTCICSC OBJ(QTEMP/AMQSCIC0) SRCFILE(/MQSAMP/QCSRC) + SRCMBR(AMQSCIC0) OUTPUT(*PRINT) + CICSOPT(*SOURCE *NOGEN) CRTCMOD MODULE(MQTEST/AMQSCIC0) + SRCFILE(QTEMP/QACYCICS) OUTPUT(*PRINT) CRTPGM PGM(MQTEST/AMQSCIC0) MODULE(MQTEST/AMQSCIC0) + BNDSRVPGM(QMQM/LIBMQIC QCICS/AEGEIPGM)