gtpc2mjoC/C++ Language Support User's Guide

Program Parts List

The ACP.CSRCE.OL.RELvv partitioned data set contains the GNTAGH program as well as some samples of source code that you need to run it. You must adapt this sample code to your environment. Data set members to be used with HLASM output are shown in Table 52.

Table 52. ACP.CSRCE.OL.RELvv Data Set Members for Converting HLASM Output

Member Name Description
GLOBALS This assembler source file contains two calls to the GLOBZ macro. The first GLOBZ invocation defines global area 1 (REGR= parameter). The second GLOBZ invocation defines global area 3 (REGS= parameter). This order must be maintained.
Note:
The GLOBALS program does not require user modification; however, the SYSADATA output from the its assembly is used as input to GNTAGH, so it should be reassembled (and GNTAGH rerun) whenever the contents of any of the global block DSECTs change.
GLDEFH This is a header file that contains constant definitions required by GNTAGH at compile time.
GNTAGH This C source program contains the actual statements that create the c$globz.h header file from HLASM SYSADATA input. It may require user modification, and it should be recompiled whenever the GLDEFH header file is modified.
GENGLOBH This program is for VM/CMS installations only, and requires the IBM C/370 Compiler (5688-040) and IBM C/370 Library (5688-039), and their associated prerequisites. GENGLOBH contains the instructions necessary to reassemble GLOBALS, recompile GNTAGH, and generate the resulting c$globz.h header file. GENGLOBH requires user modification, and is provided only as an example.
GLOBHJCL This program is for MVS installations only, and requires the IBM C/370 Compiler (5688-040) and IBM C/370 Library (5688-039), and their associated prerequisites. GLOBHJCL contains the instructions necessary to reassemble GLOBALS, recompile GNTAGH, and generate the resulting c$globz.h header file. GLOBHJCL requires user modification, and is provided only as an example.

The following two sections tell you how to create C global tagnames. An overview of this entire process is shown in Figure 3.

If you are using the MVS operating system, skip to Creating or Updating C Globals on MVS.