COBOL Manual for TNS and TNS/R Programs
Data Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
7-54
PICTURE Clause
•
Not With SAME RECORD AREA Clause
If the SAME RECORD AREA clause is specified for several files, the record
description entries or the file description entries for these files must not include the
GLOBAL clause.
•
Global Attribute is Inherited
A data-name described using a GLOBAL clause is a global name. All data-names
subordinate to a global name are global names. All condition-names associated
with a global name are global names.
•
Use With REDEFINES Clause
If the GLOBAL clause is used in a data description entry that contains the
REDEFINES clause, the global attribute applies only to the subject of the
REDEFINES clause.
Example 2-2 contains an example of the use of the GLOBAL clause.
PICTURE Clause
The PICTURE clause defines the characteristics and editing requirements of an
elementary item.
character-string
is one or more symbols that determine the category of an elementary item, restrict
the values that you can assign to the item, and define editing operations.
These data items do not have PICTURE clauses:
•
An index (described only in an INDEXED phrase)
•
A data item described as USAGE INDEX
•
A data item described as USAGE NATIVE-n (where n is 2, 4, or 8)
•
A data item described as USAGE POINTER
•
A data item declared by a RENAMES clause
PICTURE
character-string
PIC
IS
VST103.vsd