Compaq COBOL AAQ2G1FTK User Manual

Page 584

Advertising
background image

Programming Productivity Tools
C.6 Using Oracle CDD/Repository (OpenVMS)

A relationship between the MASTER_FILE object and the EMPLOYEE_
ADDRESS_RECORD definition

In addition, the record definitions are included in the compiled module.

The COPY FROM DICTIONARY statement is used when you want to create a
relationship between a compiled module and a record or field definition. The
RECORD statement is used when you need to create a relationship between a
compiled module and some other kind of repository object — one that you do not
want copied into the compiled module. For example, suppose you need to create
a relationship between the MASTER_FILE compiled module object and a text file
object, such as a functional specification. This relationship would indicate that
the compiled module is derived from the functional specification. For example:

IDENTIFICATION DIVISION.
PROGRAM-ID. MASTER-FILE.

.
.
.

PROCEDURE DIVISION.
A0100.

.
.
.
RECORD DEPENDENCY "DEVICE:[VMS_DIRECTORY]SALES.SPECIFICATION"
TYPE IS "CDD$COMPILED_DERIVED_FROM" IN DICTIONARY.
.
.
.

When this program is compiled with the /DEPENDENCY_DATA qualifier, the
compiler creates the following objects and relationships:

A compiled module object called MASTER_FILE

A temporary file object representing the object file produced by the
compilation

A relationship between the MASTER_FILE compiled module object and the
object file

A relationship between the MASTER_FILE object and the repository object
called SPECIFICATION, which represents the functional specification text
file

For more information on the RECORD statement, refer to the Compaq COBOL
Reference Manual
. For more information on the /DEPENDENCY_DATA qualifier,
invoke the online HELP facility for COBOL at the operating system prompt.

C.6.4 Data Types

Oracle CDD/Repository supports some data types that are not native to Compaq
COBOL. If a data definition contains a field declared with an unsupported data
type, Compaq COBOL issues a fatal diagnostic. The Compaq COBOL compiler
does not attempt to approximate a data type that it does not support.

Table C–1 shows how Oracle CDD/Repository data types are translated into
COBOL data types. It also states the level of support Compaq COBOL provides
for Oracle CDD/Repository data types.

C–20 Programming Productivity Tools

Advertising