Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


PICTURE clause

The PICTURE clause specifies the general characteristics and editing requirements of an elementary item.

Read syntax diagramSkip visual syntax diagram
Format

>>-+-PICTURE-+--+----+--character-string-----------------------><
   '-PIC-----'  '-IS-'                     

PICTURE or PIC
The PICTURE clause must be specified for every elementary item except the following:
  • Index data items
  • The subject of the RENAMES clause
  • Items described with USAGE POINTER, USAGE FUNCTION-POINTER, USAGE PROCEDURE-POINTER, or USAGE OBJECT REFERENCE
  • Internal floating-point data items

In these cases, use of the PICTURE clause is prohibited.

The PICTURE clause can be specified only at the elementary level.

PIC is an abbreviation for PICTURE and has the same meaning.

character-string
character-string is made up of certain COBOL characters used as picture symbols. The allowable combinations determine the category of the elementary data item.

character-string can contain a maximum of 50 characters.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)