HP 3000 Manuals

DICTCDE NAMING CONSIDERATIONS [ DICTIONARY 3000 ] MPE/iX 5.0 Documentation


DICTIONARY 3000

DICTCDE NAMING CONSIDERATIONS 

When an entity is extracted from the Dictionary, DICTCDE checks that the
entity name is compatible with COBOL. If the entity name defined in the
Dictionary is an illegal COBOL name or the entity name is a COBOL
reserved word, an error message will be issued, and DICTCDE will convert
the names to legal COBOL names.  Note that the names generated by DICTCDE
will not be reflected in the Dictionary.

The following describes how DICTCDE converts entity names that are not
compatible with COBOL.

If the entity name, as defined in the Dictionary, begins with a hyphen,
DICTCDE will add an X- to the beginning of the entity name.

Suppose the entity name in the Dictionary is:

-STOCK

the following COBOL name will be generated:

X--STOCK

If the entity name, as defined in the Dictionary, ends with a hyphen,
DICTCDE will add an -X to the end of the entity name.  Suppose the entity
name in the Dictionary is:  CUSTSTOCK- the following COBOL name will be
generated:

CUSTSTOCK--X

If the entity name extracted from the Dictionary is a COBOL reserved
word, DICTCDE will add an X- to the beginning of the word.  Also, DICTCDE
prints a comment next to the generated entity to inform you that this
entity name is a COBOL reserved word.  For example, if the entity is
defined in the Dictionary as FILE, the following code will be generated:

X-FILE

Also, if the entity name contains any invalid COBOL characters, those
characters will be replaced with a hyphen.


MPE/iX 5.0 Documentation