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.
COBOL Source Program (↑ Statements)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Construct:    COBOL Source Program
 
  Function:     The basic compilable unit of COBOL source.
 
  Syntax:
 
     ───┬─IDENTIFICATION DIVISION.─┬────────────────────────────────
          └─ID DIVISION.─────────────┘
 
     ──PROGRAM-ID. program-name-1─┬───────────────────────┬──.───────
                                   └┬──┬─INITIAL─┬───────┬─┘
                                    └IS┘         └PROGRAM┘
 
     ───┬──────────────────────────────────┬─────────────────────────
         └─identification-division-content──┘
 
     ───┬─────────────────────────────────────────────────────┬──────
         └─ENVIRONMENT DIVISION. environment-division-content──┘
 
     ───┬───────────────────────────────────────┬────────────────────
         └─DATA DIVISION. data-division-content──┘
 
     ───┬─────────────────────────────────────────────────┬──────────
         └─PROCEDURE DIVISION. procedure-division-content──┘
 
     ───┬─────────────────────────────────────────────────────────┬──
         └─┬────────────────────────┬──END PROGRAM program-name-1.─┘
           │ ┌────────────────────┐ │
           │ ▼                    │ │
           └─nested-source-program──┘
 
  where nested-source-program is:
 
     ───┬─IDENTIFICATION DIVISION.─┬────────────────────────────────
          └─ID DIVISION.─────────────┘
 
     ──PROGRAM-ID. program-name-2─┬──────────────────────────────────┬.─
                                   └┬──┬┬─INITIAL─┬────────┬┬┬───────┬┘
                                    └IS┘│         └─COMMON─┘│└PROGRAM┘
                                        └─COMMON─┬─────────┬┘
                                                 └─INITIAL─┘
 
     ───┬──────────────────────────────────┬─────────────────────────
         └─identification-division-content──┘
 
     ───┬─────────────────────────────────────────────────────┬──────
         └─ENVIRONMENT DIVISION. environment-division-content──┘
 
     ───┬───────────────────────────────────────┬────────────────────
         └─DATA DIVISION. data-division-content──┘
 
     ───┬─────────────────────────────────────────────────┬──────────
         └─PROCEDURE DIVISION. procedure-division-content──┘
 
     ───┬─────────────────────────────────────────────────────────┬──
         └─┬────────────────────────┬──END PROGRAM program-name-2.─┘
           │ ┌────────────────────┐ │
           │ ▼                    │ │
           └─nested-source-program──┘
                                    -♦-