Question 1: Illustrate the meaning of the term sorting?
Question 2: Describe the concept of sort-key? Is it possible to sort a file on more than one key?
Question 3: Give your comments on the given:
SORT ON ASCENDING KEY STU-ID-NUM
USING STU-RECORDS-FILE
GIVING SORT-OUT-FILE.
Find out the major key, minor-key and the final sorted file.
Question 4: Given two sorted files FILE-A and FILE-B. Write down a program in the COBOL to merge these files into FILE-C by using MERGE verb?
Question 5: Distinguish between sorting and merging of files.
Question 6: Write down a COBOL program to merge FILE-A, FILE-B and FILE-C to produce merged file MERGE-FILE as illustrated in table below:
FILE-A FILE-B FILE-C MERGE-FILE
10 20 15 10
30 40 25 15
50 60 35 20
70 25
30
35
40
50
60
70