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.obj defplan1.obj defplan2.obj defplan3.obj -out:defplan0.exe