Using the OpenESQL OCI Directive with PL/I: Examples

Compiling

This example compiles a mainframe migrated batch program to maximum performance.

mfplx TESTPGM.PLI –sql oci –optsql
"BEHAVIOR=OPTIMIZED,DATE=USA,DETECTDATE,CHECKDUPCURSOR,CHECKSINGLETON" -ipath 
$MFPLI_PRODUCT_DIR/include -isuffix .inc

Compiling and Linking

This example shows three subroutines compiled with a main program that calls routines to object files so it can be linked and bound.

mfplx defplan0.pli -sql oci -optsql "BEHAVIOR=OPTIMIZED" –c -ipath $MFPLI_PRODUCT_DIR/include -isuffix .inc
mfplx defplan1.pli -sql oci -optsql "BEHAVIOR=OPTIMIZED" –c -ipath $MFPLI_PRODUCT_DIR/include -isuffix .inc
mfplx defplan2.pli -sql oci -optsql "BEHAVIOR=OPTIMIZED" –c -ipath $MFPLI_PRODUCT_DIR/include -isuffix .inc
mfplx defplan3.pli -sql oci -optsql "BEHAVIOR=OPTIMIZED" –c -ipath $MFPLI_PRODUCT_DIR/include -isuffix .inc

The link object files are:

ldpli defplan0.obj defplan1.obj defplan2.obj defplan3.obj -out:defplan0.exe

ldpli defplan0.o defplan1.o defplan2.o defplan3.o -out:defplan