Compiling All Sample Programs Using the make.sh Script

This section contains the instructions on how to compile all the C sample programs using the provided make.sh script.

Procedure

  1. Start the Qshell environment:
    QSH
  2. Change to the samples directory:
    cd EMI_HOME/samples/c
  3. Run the make.sh script:
    /bin/sh ./make.sh
    The make.sh script in the EMI_HOME/samples/c directory creates the C sample programs using the following default settings:
    • The object modules and program objects are created in the library QGPL.
    • The EMS client binds the C samples with the LIBTIBEMS service program located in the TIBEMSLIB library.
    • The target release of the resulting program object is *CURRENT
  4. Optional: If you want to change any of these default settings, export the following environment variables prior to running the make.sh script:
    • Use the COMPILELIB environment variable to change where the object modules and program objects are created.
    • Use the CLIENTLIB environment variable to change where the LIBTIBEMS service program is located.
    • Use the TGTRLS environment variable to change the target release of the resulting program.
    For example:
    export COMPILELIB=MYDEVLIB
    export CLIENTLIB=MYEMSLIB
    export TGTRLS=V7R1M0
    /bin/sh ./make.sh
  5. To remove all *PGM and *MODULE objects, as well as all *SYMLNK related to the sample program, run the following:
    cd EMI_HOME/samples/c

    /bin/sh ./make.sh clean

    where COMPILELIB environment variable is set to the name of the library specified previously.

    Note: A set of helper functions for the C samples is provided in SXJ3UTIL or tibemsUtilities.c.