VMS Help
COBOL, PROCEDURE_DIVISION, RETURN

 *Conan The Librarian

  The RETURN statement gets sorted records from a sort operation.  It also
  returns merged records in a merge operation.

  Format -

   RETURN smrg-file RECORD [ INTO dest-area ]

      AT END stment [ NOT AT END stment ]

      [ END-RETURN ]

  1 - smrg-file

  is the name of a file described in a sort-merge file description (SD)
  entry.

  2 - dest-area

  is the identifier of the data item to which the returned smrg-file
  record is moved.

  3 - stment

  is an imperative statement.
  Close     Help