SORT-MERGE/XL Programmer's Guide (32650-90884)
Appendix D 107
FORTRAN Program Examples
Example of Record Input
Example of Record Input
The following program sorts the personnel files shown below. They are sorted by last name.
The program marks the employee numbers for the temporary employees with an asterisk.
The files that are used in the following example are as follows (data descriptions and
character positions are indicated for convenience only):
TEMPEMP Information file about temporary employees:
Last Name First Name Employee Number Hire Date
Gangley, Tomas 000003 06/06/87
Rields, Evelyn 000007 07/12/87
Everett, Joyce 000029 10/19/87
01234567
1234567890123456789012345678901234567890123456789012345678901234567890
PERMEMP Information file about permanent employees:
Last Name First Name Employee Number Hire Date
Jones, Eliza 000001 06/06/87
Smith, James 000005 06/06/87
Jackson, Johnathon 000006 06/06/87
Washington, Lois 000014 07/23/87
Jackson, Rosa 000022 08/15/87
01234567
1234567890123456789012345678901234567890123456789012345678901234567890