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.
File-Control Entry (↑ Statements)
 ◄Key►                                       ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Construct:    File-Control Entry (SELECT)
 
  Function:     Assigns names to files, for use in the program,
                and describes the files.
 
  Syntax:       Which format?  ◄Sequential►   Relative
                               ◄Indexed►     ◄Sort-Merge►
 
  ►►───SELECT─┬──────────────┬─file-name-1────►
              ├─NOT OPTIONAL─┤
              └─OPTIONAL─────┘
 
                ┌───────────────────────────────────────────────────┐
                ▼                                                   │
  ►─ASSIGN─┬──┬─┬┬──────────┬─┬┬───────┬┬─external-file-reference─┬┬┬─►
           └TO┘ │├─EXTERNAL─┤ │└─DISK──┘├─data-name-1─────────────┤││
                │└─DYNAMIC──┘ │         └─literal-1───────────────┘││
                │             └──DISK──────────────────────────────┘│
                └─DISK FROM data-name-1─────────────────────────────┘
 
  ►─┬───────────────────────────────────────┬─►
    └─RESERVE─┬─integer─┬─ALTERNATE─┬AREA─┬─┘
              └─NO──────┘           └AREAS┘
 
 
 
  ►─┬───────────────────┬─RELATIVE───────────────────────────────►
    └─ORGANIZATION─┬──┬─┘
                   └IS┘
 
  ►─┬───────────────────────────────────────────────────────────────────┬─►
    └─ACCESS─┬────┬┬──┬─┬─SEQUENTIAL─┬────────────────────────────────┬┬┘
             └MODE┘└IS┘ │            └─RELATIVE─┬───┬┬──┬─data-name-2─┘│
                        │                       └KEY┘└IS┘              │
                        └┬─RANDOM───┬──RELATIVE─┬───┬┬──┬─data-name-2──┘
                         └─DYNAMIC──┘           └KEY┘└IS┘
 
  ►┬─────────────────────────────────────────────────────────────────────┬►
   └─LOCK─┬────┬┬──┬─┬─EXCLUSIVE────────────────────────────────────────┬┘
          └MODE┘└IS┘ └┬─AUTOMATIC─┬┬───────────────────────────────────┬┘
                      └─MANUAL────┘└┬────┬┬─LOCK ON─┬────────┬┬RECORD─┬┤
                                    └WITH┘│         └MULTIPLE┘└RECORDS┘│
                                          └─ROLLBACK───────────────────┘
 
 
  ►─┬───────────────────────────┬──────────────────────────────►
    └─PASSWORD─┬──┬─data-name-3─┘
               └IS┘
 
  ►─┬───────────────────────────────────────────────┬──. ──────►◄
    └┬────┬─STATUS─┬──┬─data-name-4─┬─────────────┬─┘
     └FILE┘        └IS┘             └─data-name-5─┘
                                    -♦-