67.1k views
2 votes
The SORT statement is used in the ____________ to place records in a sort work file.

(Points : 2) IDENTIFICATION DIVISION
ENVIRONMENT DIVISION
DATA DIVISION
PROCEDURE DIVISION

User Sedovav
by
8.0k points

1 Answer

5 votes

Answer: Procedure division

Step-by-step explanation:

The SORT statement is basically used in the procedure division for placing the various records in the sort file. The SORT statement easily accept the records from the different files and then sorting them accordingly to the specific file key in the database.

The SORT statements are used in the procedure division but it does not used in the declarative portion in the sorting file. The SORT statement is basically coded in the form of independent and fixed segment.

User Berndbausch
by
6.6k points