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──────────────────┘
 
     ►──┬─────────────────►1
        └─DECLARATIVES. ──►2
 
       ┌────────────────────────────────────────────────────────────────┐
       ▼                                                                │
    2►─section-name SECTION─┬──────┬─. USE-statement. ─┬────────────────┬─►2
                            └seg-no┘          ┌────────┘                │
                                              │ ┌──────────────────────┐│
                                              │ ▼                      ││
                                              └─para-name. ─┬──────────┬┘
                                                            │ ┌───────┐│
                                                            │ ▼       ││
                                                            └─sentence─┘
 
    1►──────────────────────┬─────────────────────────────────────────────►
    2►──END DECLARATIVES. ──┘
 
     ►─┬───────────┬──┬───────────────────────────┬───────────────────────►
       │ ┌───────┐ │  │ ┌───────────────────────┐ │
       │ ▼       │ │  │ ▼                       │ │
       └─sentence──┘  └─para-name. ─┬───────────┬─┘
                                    │ ┌───────┐ │
                                    │ ▼       │ │
                                    └─sentence──┘
 
     ►─section-name SECTION─┬────────┬─. ─┬───────────────────────────┬───►◄
                            └─seg-no─┘    │ ┌───────────────────────┐ │
                                          │ ▼                       │ │
                                          └─para-name. ─┬───────────┬─┘
                                                        │ ┌───────┐ │
                                                        │ ▼       │ │
                                                        └─sentence──┘
                                    -♦-