Under the z/OS UNIX shell

Steps for compiling, binding, and running the C++ template example program using UNIX commands

Before you begin: Ensure that the Language Environment® runtime libraries SCEERUN and SCEERUN2, and the z/OS® XL C++ compiler are in STEPLIB, LPALST, or the LNKLST concatenation.

Perform the following steps to compile, run, and bind the template example program under the z/OS shell:

  1. Copy sample files to your own directory, as follows:
    cp /usr/lpp/cbclib/sample/clb3atmp/* your_dir/.

    _______________________________________________________________

  2. Then, to compile and bind:
      c++ -+ -o clb3atmp clb3atmp.cpp
    This command compiles clb3atmp.cpp and then compiles the ./tempinc directory (which is created if it does not already exist). It then binds using all the objects in the ./tempinc directory. An archive file, or C370LIB object library is not created.

    _______________________________________________________________

  3. Run the program:
     ./clb3atmp

    _______________________________________________________________