VMS Help  —  RDML72  Statements  FIRST Clause, Examples  C Example
    #include <stdio.h>
    DATABASE PERS = FILENAME "PERSONNEL";

    main ( )
    {
    READY PERS;
    START_TRANSACTION READ_ONLY;

    FOR FIRST 50 E IN EMPLOYEES
       SORTED BY E.EMPLOYEE_ID
          printf ("%s  ",E.EMPLOYEE_ID);
          printf ("%s\n",E.LAST_NAME);
    END_FOR;

    COMMIT;
    FINISH;
    }
Close Help