VMS Help  —  COBOL  PROCEDURE_DIVISION, START
  The START statement establishes the logical position of the Next Record
  Pointer in an indexed or relative file.  The logical position affects
  subsequent sequential record retrieval.

  Format -

                   [     { IS EQUAL TO                 }          ]
                   [     { IS =                        }          ]
                   [     { IS GREATER THAN             }          ]
   START file-name [ KEY { IS >                        } key-data ]
                   [     { IS NOT LESS THAN            }          ]
                   [     { IS NOT <                    }          ]
                   [     { IS GREATER THAN OR EQUAL TO }          ]
                   [     { IS >=                       }          ]
                   [     { IS LESS THAN                }          ]
                   [     { IS <                        }          ]
                   [     { IS LESS THAN OR EQUAL TO    }          ]
                   [     { IS <=                       }          ]
                   [     { IS NOT GREATER THAN         }          ]
                   [     { IS NOT >                    }          ]

        [ REGARDLESS OF LOCK     ]
        [          { UPDATERS  } ]
        [ ALLOWING { READERS   } ]
        [          { NO OTHERS } ]

        [ INVALID KEY stment ] [ NOT INVALID KEY stment ]

        [ END-START ]

1  –  file-name

  is the name of an indexed or relative file with sequential or dynamic
  access.  It cannot be the name of a sort or merge file.

2  –  key-data

  is the data-name of a data item or the segmented-key name specified
  as a record key, or the leftmost part of a record key, or the
  relative key for file-name.  It can be qualified.

3  –  stment

  is an imperative statement.
Close Help