Multiple choice technology mainframe

In a sort when the control transfers to the para TEST-ACCOUNT-PARA for the following syntax SORT FILE-NAME-1 ON ASCENDING KEY ACCOUNT-NO INPUT PROCEDURE IS TEST-ACCOUNT-PARA USING FILE-NAME-2 OUTPUT PROCEDURE IS WRITE-ACCOUNT-PARA GIVING FILE-NAME-3

  1. Before sort

  2. After sort

  3. For each record in the sort

  4. For the last record

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The correct answer is A (Before sort). The INPUT PROCEDURE in a SORT statement executes BEFORE the actual sorting takes place. It's used to select, modify, or filter records from the input file before they're sorted. The OUTPUT PROCEDURE would execute after the sort is complete. This two-step design allows pre-processing of input data and post-processing of sorted results.