VMS Help — RDML72 Statements COUNT Examples C Example
#include <stdio.h>
DATABASE PERS = FILENAME "PERSONNEL";
int num;
main()
{
READY PERS;
START_TRANSACTION READ_ONLY;
GET
num = COUNT OF E IN EMPLOYEES;
END_GET;
printf ("The number of employees is %d", num);
COMMIT;
FINISH;
}