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
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.o defplan1.o defplan2.o defplan3.o -out:defplan