Use this syntax to set an HCO for DB2 LUW preprocessor option for the PL/I compiler.
mfplx pliProgName –sql db2 –optsql "DB2PrecompilerOption [...]"
Since the HCO for DB2 LUW preprocessor must connect to the DB2 LUW server to convert EXEC SQL statements to API calls, you must use the DB option for PL/I when building applications using SQL.
These examples specify a server named SAMPLE to connect to and compiles programs named sample1 and sample2 respectively:
mfplx sample1.sqb –sql db2 –optsql "DB=SAMPLE"
mfplx sample2.sqb –sql db2 –optsql "DB=SAMPLE"