gtpc2mjp | C/C++ Language Support User's Guide |
You must complete the following tasks to create or update C language TPF globals on VM (steps 1-3 are automated by the GENGLOBH exec):
Specify the ADATA option (the cross reference is not required; cross reference information is ignored by the GNTAGH program).
The SYSADATA file that is produced will be used as input to the GNTAGH program. It must be on your A-disk; it must be accessible in disk search order for CMS.
If your installation runs a non-standard global system in which the attributes of global blocks or areas are different from those defined by IBM, you must:
You must pay particular attention to the array of struct blk_desc called block. This array is defined in the GNTAGH program. Each item in this array describes a global block and contains the following items, which must be initialized to constant values prior to compiling the GNTAGH program:
The remainder of structure members are initialized at program run time and will be overwritten if initialized.
The file name of the assembler SYSADATA file must be associated with the DD name INFILE, and should be GLOBALS SYSADATA.
Use C$GLOBZ H for the DD name OUTFILE. DCB information does not have to be specified for VM/CMS because file type H defaults to fixed records of length 80.
If any of a global tagname's attributes change, you need to reconstruct the c$globz.h header file so that C functions are accessing the new information. You must also recreate the c$globz.h header file whenever any of the following events occur:
The following section is for MVS users only. To bypass this section, go to Format of Global Tags.