This syntax sets OpenESQL compiler options for the Open PL/I compiler.
mfplx pliProgName –sql odbc –optsql "SQLPrecompilerOption [...]"
These OpenESQL compiler options are recommended for PL/I when emulating mainframe settings using SQL.
This example compiles a batch program to qualify tables using MAINFRAME and DATE options.
mfplx TESTPGM.PLI –sql odbc –optsql "BEHAVIOR=OPTIMIZED DATE=USA"This example compiles three subroutines and a main program that calls routines to object files so it can be linked.
mfplx testpgm0.pli -sql odbc –optsql "BEHAVIOR=OPTIMIZED DATE=USA" –c mfplx testsub1.pli -sql odbc -optsql "BEHAVIOR=OPTIMIZED DATE=USA " –c mfplx testsub2.pli -sql odbc –optsql "BEHAVIOR=OPTIMIZED DATE=USA " –c mfplx testsub3.pli -sql odbc -optsql "BEHAVIOR=OPTIMIZED DATE=USA " –cThis example to links the object files and creates an executable file.
ldpli testpgm0.obj testsub1.obj testsub2.obj testsub3.obj -out:test.exe