Internet COBOL
Sorting with an input procedure

Modify your first sorting lab assignment so that you have an input procedure that only selects records with a "M" in the marital status column and that have the salary over 40000. Sort the data on (1) gender - ascending; and (2) last name - ascending. Print out just program code and the output data file. (that is the data just the meets the criteria).

 

Here is the data file (same as before)

Here is the output file

This is an extension to the first sorting lab

Here is an example of sorting with an INPUT-PROCEDURE

Return to main menu