HELPLIB.HLB — RDML72 Statements FIRST Clause, Examples Pascal Example
program first_clause (input,output);
DATABASE PERS = FILENAME 'PERSONNEL';
begin
READY PERS;
START_TRANSACTION READ_ONLY;
FOR FIRST 50 E IN EMPLOYEES
SORTED BY E.EMPLOYEE_ID
writeln (E.EMPLOYEE_ID, ' ', E.LAST_NAME);
END_FOR;
COMMIT;
FINISH;
end.