COBOL/400 Language Help
- Description
- Declaratives provide one or more special-purpose sections that are
executed when an exception condition occurs.
- Preface the entire group of Declarative Sections with the keyword
DECLARATIVES. Write it on the line after the Procedure Division
header. Specify the end of the group with the keywords END
DECLARATIVES. The keywords DECLARATIVES and END DECLARATIVES must begin
in Area A and be followed by a separator period. No other text may
appear on the same line..
- When you specify Declarative Sections, you must group them at the
beginning of the Procedure Division. When Declarative Sections are
specified, you need to divide the entire Procedure Division into
sections.
- Begin each Declarative Section with a USE sentence that identifies the
section's function. When an exception condition occurs, the series
of procedures that follow the USE sentence specify the actions to be
taken. End each Declarative Section with another section-name followed
by a USE sentence, or with the keywords END DECLARATIVES.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.