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:
- Copy sample files to your own directory, as follows:
cp /usr/lpp/cbclib/sample/clb3atmp/* your_dir/._______________________________________________________________
- Then, to compile and bind:
This command compilesc++ -+ -o clb3atmp clb3atmp.cppclb3atmp.cppand then compiles the./tempincdirectory (which is created if it does not already exist). It then binds using all the objects in the./tempincdirectory. An archive file, or C370LIB object library is not created._______________________________________________________________
- Run the program:
./clb3atmp_______________________________________________________________