beautypg.com

Specifying defines for sql/mp tables, Sql/mp preprocessor category – HP Integrity NonStop H-Series User Manual

Page 89

background image

6.

Select the Add button (

) to open the Enter Value dialog.

7.

Enter –WIEEE_float in the Enter Value dialog, then select OK.

8.

Select OK to apply your change and dismiss the Properties dialog.

Specifying DEFINES for SQL/MP tables

Cross compilers provide the –Wdef_obey= option for passing in an Obey file which sets up
DEFINEs

. You can, for example, use ADD DEFINE statements to map logical SQL table names

to physical table names and avoid hard coding SQL table names in source code. If you set up
such a file for a COBOL project, for instance, you should pass it to both the COBOL Compiler with
SQL/MP and COBOL SQL/MP Compile and Deploy tools in your project’s tool chain. For example,
if you created a file named C:\\mydefines.txt that contains your ADD DEFINE statements
for a TNS/E COBOL program with SQL/MP, you would perform the following steps to pass the
file to the compiler and linker:

1.

Select the COBOL SQL/MP project in the NonStop Project Explorer view.

2.

Select Properties from the context menu of the NonStop Project Explorer view.

3.

Select C/C++ Build > Settings on the left of the Properties dialog.

4.

Select [ All configurations ] in the Configuration: combo box if you want your changes to be
applied to all build configurations.

5.

In the Tool Settings tabbed page, select the SQL/MP Preprocessor category for the COBOL
Compiler with SQL/MP (TNS/E) tool (see

Figure 49 (page 89)

).

Figure 49 SQL/MP Preprocessor category

6.

Select the Add button (

) to open the Enter Value dialog.

7.

Enter –Wdef_obey=C:\mydefines.txt in the Enter Value dialog, then select OK.

8.

Select the Miscellaneous category for the COBOL SQL/MP Compiler and Deploy (TNS/E) tool
(

Figure 50 (page 89)

).

Figure 50 Miscellaneous category for COBOL SQL/MP Compile and Deploy

Specifying DEFINES for SQL/MP tables

89

This manual is related to the following products: