Previous Topic Next topic Print topic


Compile and Link Open PL/I Programs Under JCL

These are the steps to compile and link Open PL/I programs for execution under the control of JCL.

  1. Go back to the command prompt used to start the enterprise server.
  2. Enter the following command:
    mfplx –deb –defext –mvs –dll opdemo.pli –o /home/hub/nxopdemo/debug/OPDEMO.so
    ld -shared -o /home/hub/nxopdemo/debug/OPDEMO.so opdemo.o $MFPLI_PRODUCT_DIR/lib/dllmain.o $MFPLI_PRODUCT_DIR/lib/noofm.o $MFPLI_PRODUCT_DIR/lib/nojw.o -melf_i386 -lmf -L$MFPLI_PRODUCT_DIR/lib
    Note: This is the Red Hat Linux command. For other UNIX platforms, see Creating a Sharable Library.
    This will compile and link opdemo.pli. Files copy to /home/hub/nxopdemo/debug.
  3. Build opdemo2.pli in the same way, replacing opdemo.pli with opdemo2.pli and opdemo.dll with opdemo2.dll in the command above.
    mfplx –deb –defext –mvs –dll opdemo.pli –o /home/hub/nxopdemo/debug/OPDEMO.so
Previous Topic Next topic Print topic