Overview [ COBOL/HP-UX Operating Guide for the Series 700 and 800 ] MPE/iX 5.0 Documentation
COBOL/HP-UX Operating Guide for the Series 700 and 800
Overview
The H2CPY utility translates C-language header files into their COBOL
equivalent copy files. Specifically, it converts:
* #define statements into COBOL level-78 definitions where
appropriate.
* typedef statements into the equivalent COBOL data definitions.
H2CPY also recognizes the #if, #ifdef, #ifndef, #else, #endif, and
#include statements and acts on them accordingly. This means that only
the definitions required are translated.
H2CPY lets you control the format of the .cpy
file. You can set the case of the text, the starting-level number, the
line indentation for successive levels, and the line position at which
the PICTURE and VALUE clauses are placed. You can also choose how
structure fields are to be accessed from a COBOL program and whether
translated definitions are placed in one file or in multiple files.
The generated copy files resulting from H2CPY can be very big. These
files can be further split to make them easier to manage. The utility
split78
processes a copy file containing 78-level items and splits it into
several copy files. Each 78-level item starting with the same prefix is
placed in the same copy file.
MPE/iX 5.0 Documentation