cobol1.hlp (Topic list)
CLOSE (↑ Statements)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Verb:         CLOSE
 
  Function:     Terminates the processing of reels/units and files,
                with optional rewind and/or lock or removal
                where applicable.
 
  Syntax:       Which format?   Sequential   Relative & indexed
 
               ┌─────────────────────────────────────────────┐
               ▼                                             │
     ──CLOSE file-name-1──┬────────────────────────────────┬────
                            ├─┬─REEL─┬─┬───────────────────┬─┤
                            │ └─UNIT─┘ ├┬───┬─REMOVAL──────┤ │
                            │          │└FOR┘              │ │
                            │          └┬────┬─┬─NO REWIND─┤ │
                            │           └WITH┘ └─LOCK──────┘ │
                            └┬────┬─┬─NO REWIND─┬────────────┘
                             └WITH┘ ├─LOCK──────┤
                                    └─DISP──────┘
                                    -♦-