The word PICTURE or the words PICTURE IS or the abbreviation PIC always precedes the picture
itself in an entry.
Examples of pictures in entries:
02 FILLER PICTURE
~
. tu
02 STOCK-ITEM PIC ~ pIC res
PROGRAM STRUCTURE
A COBOL source program is composed of entries organized into divisions, sections, and paragraphs.
In general, a division is made up of sections, and a section is made up of paragraphs.
Divisions
All COBOL programs consist of four divisions each with a fixed name: IDENTIFICATION,
ENVIRONMENT, DATA, and PROCEDURE. The divisions always appear in that order in a program.
The beginning of each division is marked by a division header entry consisting of the name of the
division followed by the word DIVISION and a period. The division header always appears on a line
by itself.
Sections
The inclusion of sections depends on the particular division. There are no sections in the Identification
Division. The Environment and Data Divisions always have sections and these sections have fixed
names. Sections are optional in the Procedure DiviSion, and when sections are included, the section
names are supplied by the user.
Each section is identified by a header entry consisting of the section name followed by the word
SECTION and a period. A section header usually appears on a line by itself.
Paragraphs
All divisions except the Data Division contain paragraphs. Paragraph names in the Identification and
Environment Divisions are fixed.
In
the Procedure Division, paragraph names are user defined.
Paragraphs are identified by header entries consisting of a name followed by a period and a space.
A paragraph header need not appear on a line by itself; it must be the first entry on a line, but may
befollowedonthe same line by one or more entries in that paragraph.
60229400
xi
Need help?
Do you have a question about the 3300 and is the answer not in the manual?