VMS Help  —  COBOL  ENVIRONMENT_DIVISION, FILE-CONTROL  4format_indexed
  FILE-CONTROL.

  Format 4 - Indexed File

   SELECT [OPTIONAL] file-name

      { ASSIGN TO  [ EXTERNAL ] file-spec     }
      {            [ DYNAMIC  ]               }
      {                                       }
      { ASSIGN TO  [ EXTERNAL ] { data-name } }
      {            [ DYNAMIC  ] { literal   } }
      {                         { DISK      } }
      {                         { PRINTER   } }

      [ RESERVE reserve-num [ AREA  ] ]
      [                     [ AREAS ] ]

      [ ORGANIZATION IS ] INDEXED

      [ BLOCK CONTAINS [ smallest-block TO ] blocksize { RECORDS    } ]
      [                                                { CHARACTERS } ]

      [RECORD DELIMITER IS STANDARD-1]

      [                { SEQUENTIAL } ]
      [ ACCESS MODE IS { RANDOM     } ]
      [                { DYNAMIC    } ]

      [RECORD KEY IS { rec-key | seg-key = {seg}... }             ]
      [                          [WITH DUPLICATES] [ ASCENDING  ] ]
      [                                            [ DESCENDING ] ]

      [ALTERNATE RECORD KEY IS { alt-key | seg-key = {seg}... }   ]
      [                          [WITH DUPLICATES] [ ASCENDING  ] ]
      [                                            [ DESCENDING ] ] ...

      [             { MANUAL WITH LOCK ON MULTIPLE RECORDS } ]
      [LOCK MODE IS { AUTOMATIC [WITH LOCK ON RECORD]      } ]
      [             { EXCLUSIVE                            } ]

      [FILE STATUS IS file-stat] .
Close Help