#include <stdio.h> DATABASE PERS = FILENAME "PERSONNEL"; DECLARE_VARIABLE match_string SAME AS EMPLOYEES.LAST_NAME; main() { read_string(match_string,"R*",sizeof(match_string)); READY PERS; START_TRANSACTION READ_ONLY; FOR E IN EMPLOYEES WITH E.LAST_NAME MATCHING match_string SORTED BY E.EMPLOYEE_ID printf ("%s %s %s",E.EMPLOYEE_ID, E.LAST_NAME, E.FIRST_NAME); END_FOR; COMMIT; FINISH; }