Prepare COBOL programs using IBM COBOL Set for AIX

 

Sample COBOL programs are supplied with WebSphere MQ. To compile such a program, enter the appropriate command from the list below:

32 bit non-threaded server application

$ cob2 -o amq0put0 amq0put0.cbl -L/usr/mqm/lib -lmqmcb -qLIB \
-I<COBCPY>

32 bit non-threaded client application

$ cob2 -o amq0put0 amq0put0.cbl -L /usr/mqm/lib -lmqicb -qLIB \
-I<COBCPY>

32 bit threaded server application

$ cob2_r -o amq0put0 amq0put0.cbl -qTHREAD -L/usr/mqm/lib \
-lmqmcb_r -qLIB -I<COBCPY>

32 bit threaded client application

$ cob2_r -o amq0put0 amq0put0.cbl -qTHREAD -L /usr/mqm/lib \
-lmqicb_r -qLIB -I<COBCPY> 

 

Parent topic:

Preparing COBOL programs


fg16180_