VMS Help  —  COBOL  PROCEDURE_DIVISION, miscellaneous_topics, declaratives
  Declaratives specify procedures to be executed only when certain
  conditions occur.  You must write declarative procedures at the
  beginning of the Procedure Division in consecutive sections.  The key
  word DECLARATIVES begins the declaratives part of the Procedure
  Division; the pair of key words END DECLARATIVES ends it.  Each of
  these reserved word phrases must: (1) be on a line by itself, starting
  in Area A; and (2) be followed by a separator period.

  When you use declarative procedures, you must divide the remainder of
  the Procedure Division into sections.

  Format -

   [ DECLARATIVES.

   { section-name SECTION [ segment-number ] . declarative-sentence

   [ paragraph-name. [sentence] ... ] ... } ...

     END DECLARATIVES. ]
Close Help