The precompiler "prepares" the source program for compilation by replacing each EXEC SQL statement with a language-specific CALL statement and placing the SQL text in comment. (DB2 is not accessed during this process.) The precompiler can be invoked in DB2I or in batch and
The DBRM that is created contains extracted, somewhat modified, parsed SQL source code that can be stored as a member in a PDS. One DBRM is created for each precompiled source program, and it will then become the input to the BIND process. The SQL statements are replaced during the precompile process with a call to the DSNHLI module. This call will contain the necessary parametersDBRM name, timestamp, statement number, address of host variables, and address of SQLCAin order to locate the access path needed to execute the SQL statement associated with the call when the DBRM and modified source are used together at execution time. |