Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


User-defined words

The following sets of user-defined words are supported. The second column indicates whether multibyte characters are allowed in words of a given set.

User-defined word Multibyte characters allowed?
Alphabet-name Yes
Class-name (of data) Yes
Condition-name Yes
Data-name Yes
File-name Yes
Index-name Yes
Level-numbers: 01-49, 66, 77, 88 No
Library-name No
Mnemonic-name Yes
Object-oriented class-name No
Paragraph-name Yes
Priority-numbers: 00-99 No
Program-name No
Record-name Yes
Section-name Yes
Symbolic-character Yes
Text-name No

The maximum length of a user-defined word is 30 bytes, except for level-numbers and priority-numbers. Level-numbers and priority numbers must each be a one-digit or two-digit integer.

A given user-defined word can belong to only one of these sets, except that a given number can be both a priority-number and a level-number. Each user-defined word within a set must be unique, except for priority-numbers and level-numbers and except as specified in Referencing data names, copy libraries, and procedure division names.

The following types of user-defined words can be referenced by statements and entries in the program in which the user-defined word is declared:

The following types of user-defined words can be referenced by any COBOL program, provided that the compiling system supports the associated library or other system and that the entities referenced are known to that system:

The following types of names, when they are declared within a configuration section, can be referenced by statements and entries in the program that contains the configuration section or in any program contained within that program:

The function of each user-defined word is described in the clause or statement in which it appears.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)