RETURN statement.

The RETURN statement obtains either sorted records from the final phase of a sort operation or merged records during a merge operation.

Format.

          RETURN file-name-1 RECORD [ INTO identifier-1 ]

                [ [ AT ] END imperative-statement-1 ]
                [ NOT [ AT ] END imperative-statement-2 ]

                [ END-RETURN ]