cobol1.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Procedure Division (↑ Statements)
 ◄Key►                                       ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Construct:    Procedure Division
 
  Function:     Contains the executable statements of the program.
 
  Syntax:       Which format?  ◄DECLARATIVES►   Simple
 
     ►►─PROCEDURE DIVISION─┬───────────────┬──────────────────────────────►
                           └─mnemonic-name─┘
 
     ►───┬────────────────────────────────────────┬─. ────────────────────►
         │      ┌───────────────────────────────┐ │
         │      ▼                               │ │
         ├─USING─┬┬───────────────┬─data-name-1─┬─┤
         │       │└┬──┬─REFERENCE─┘             │ │
         │       │ └BY┘                         │ │
         │       └┬──┬─VALUE data-name-2────────┘ │
         │        └BY┘                            │
         │           ┌──────────┐                 │
         │           ▼          │                 │
         └─CHAINING──data-name-1──────────────────┘
 
                       ┌───────────────────────┐
                       ▼                       │
     ►──┬───────────┬──para-name. ─┬───────────┬───►◄
        │ ┌───────┐ │              │ ┌───────┐ │
        │ ▼       │ │              │ ▼       │ │
        └─sentence──┘              └─sentence──┘
                                    -♦-