#include <stdio.h> DATABASE PERS = FILENAME "PERSONNEL"; extern void read_string (); DECLARE_VARIABLE dept_code SAME AS DEPARTMENTS.DEPARTMENT_CODE; main () { read_string ("Department Code: ",dept_code, sizeof(dept_code)); READY PERS; START_TRANSACTION READ_ONLY; FOR D IN DEPARTMENTS WITH D.DEPARTMENT_CODE = dept_code printf ("Department name = %s\n ", D.DEPARTMENT_NAME); END_FOR; COMMIT; FINISH; }