Compiling a Single Sample Program Using Native Compiler Commands

This section contains different examples on how to compile a single C sample program by using the native compiler commands.

Note: SXJ3UTIL contains helper functions used by the other samples to handle common activities. You have to compile it ahead of the other samples so that it may be bound together with them.
CRTCMOD MODULE(samplib/SXJ3UTIL)
SRCSTMF('EMI_HOME/samples/c/tibemsUtilities.c') ENUM(4)
INCDIR('EMI_HOME/include' 'EMI_HOME/samples/c')

Example of CRTCMOD

CRTCMOD MODULE(samplib/SXJ3MP)
SRCSTMF('EMI_HOME/samples/c/tibemsMsgProducer.c') ENUM(4)
INCDIR('EMI_HOME/include')

where samplib is the name of your development library.

Example of CRTPGM

CRTPGM PGM(samplib/SXJ3MP) MODULE(samplib/SXJ3MP samplib/SXJ3UTIL)
BNDSRVPGM((prodlib/LIBTIBEMS)) ACTGRP(*NEW)