4.1.1
DEClARA TlVES
4-2
The division begins with the header and a period on the first line. When
declaratives are included, the entire declarative portion of the specification
is written immediately following the division header.
If
declaratives are not
included, the next line contains the first section name followed by a space
and the word SECTION.
If
sections are not specified, the next line is the first
paragraph name followed by a period. Sections are optional, but if any para-
graph in the division is in a section, then all paragraphs must be in sections.
Statem ents in the Procedure Division are combined to form sentences and
paragraphs; paragraphs may be combined to form sections. Sentences are
terminated by a period and a space; paragraphs by the next paragraph name,
section name, or the end of the division. Sections are terminated by the next
section name, the end of the division, or if they are declarative sections, by
the terminator END DECLARA TIVES. Paragraphs and sections are both
called procedures; paragraph names and section names are referred to as
procedure names. The elements of statements are COBOL words, identifiers,
and literals. A summary description of these elements ani of procedure names
is contained in appendix B.
When the entire contents of a paragraph or section are contained in the COBOL
library, the procedure name may be followed by the COpy statement. Section 6
contains a description of the COBOL library and the COpy statement.
Declarative sections are grouped at the beginning of the Procedure Division
under the collective header DE CLARA TIVES. They are followed by the
collective termination header END DEC LARA TIVES. Each declarative is
specified in a section by itself, preceded by a section header. The introductory
sentence containing a USE statement follows the header. Associated proce-
dures are specified according to the same rules as all other procedures in
the program. The introductory USE sentence defines the conditions under
which these procedures are to be executed by the input-output control system.
60229400
Need help?
Do you have a question about the 3300 and is the answer not in the manual?