program for_in_rse (input,output); DATABASE PERS = FILENAME 'PERSONNEL'; var DECLARE_VARIABLE dept_code SAME AS DEPARTMENTS.DEPARTMENT_CODE; begin write ('Department Code: '); readln (dept_code); READY PERS; START_TRANSACTION READ_ONLY; FOR D IN DEPARTMENTS WITH D.DEPARTMENT_CODE = dept_code writeln ('Department name = ', D.DEPARTMENT_NAME); END_FOR; COMMIT; FINISH; end.