Procedure division structure

The PROCEDURE DIVISION is an optional division.

Program procedure division
The program procedure division consists of optional declaratives, and procedures that contain sections, paragraphs, sentences, and statements.

Format: procedure division

Read syntax diagramSkip visual syntax diagramprocedure-division-headerDECLARATIVES.sect.use-statement1paraEND DECLARATIVES.section-name2SECTIONpriority-number3.para
sect
Read syntax diagramSkip visual syntax diagramsection-nameSECTIONpriority-number3
para
Read syntax diagramSkip visual syntax diagramparagraph-name.sentence
Notes:
  • 1 The USE statement is described under USE statement.
  • 2 Section-name can be omitted. If you omit section-name, paragraph-name can be omitted.
  • 3 Priority-numbers are not valid for recursive programs.