HCO for DB2 LUW Preprocessor Options

Syntax

Use this syntax to set an HCO for DB2 LUW preprocessor option for the PL/I compiler.

mfplx pliProgName –sql db2 –optsql "DB2PrecompilerOption [...]"

Required Options

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.

The PL/I DB2 LUW Preprocessor uses the same preprocessor options as used with the equivalent COBOL HCO preprocessor.

ko

Examples

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"
Note: You do not need to link with db2api.lib library as PL/I dynamically loads all required code.