SORT RAFFLES_FILE ON ASCENDING KEY IBM-MAIN Y2K-MAIN USING INPUT-FILE GIVING OUTPUT-FILE. Which one the following is true.

(a)The sorted file will contain all Raffles records in ascending order of Y2K-MAIN.
(b)IBM-MAIN is the major key and Y2K-MAIN is the minor key
(c)The statement is wrong as there should be only one key since the clause ascending key appears only once.
(d)Both INPUT-FILE and OUTPUT-FILE must be described in the DATA DIVISION with SD entries.

Answer: b

0 comments: