HELPLIB.HLB  —  RDML72  Statements  DB Field, Examples  C Example
    #include <stdio.h>
    DATABASE PERS = FILENAME "PERSONNEL";

    main()
    {
    READY PERS;
    START_TRANSACTION READ_ONLY;

    FOR J IN JOBS WITH J.JOB_CODE = "APGM"
       printf ("%s", J.JOB_TITLE);
       printf ("  $%f", J.MINIMUM_SALARY);
       printf ("  $%f\n", J.MAXIMUM_SALARY);
    END_FOR;

    COMMIT;
    FINISH;
    }
Close Help