Problem:
Compiling program using the Host Compatibility Option with UDB 7.2 and having host variable defined in a copybook not SQL INCLUDE
Resolution:
Mainframe Express was updated to know where host variable are located so that it would better emulate the DB2 compile environment on the mainframe.
A directive /DB2(COPY) with permit host variables to be resolved when in copybooks
For global settings
1. Select workgroup tab.
2. Select the Project pull down menu.
3. Build settings for project
4. Select COBOL tab.
5. Select PREPROC tab.
6. Click on the EXEC SQL box so that the MORE button appears
7. In the additional directives box add /DB2(COPY)
8. Select CLOSE button.
9. Uncheck EXEC SQL box so that MORE button is grayed out
10. Select OK button.
#MFDS
#EnterpriseDeveloper