RDOHELP72.HLB  —  Value expr, statistical_expression, Format  COUNT
    --> COUNT --> OF --> rse -->

    The following COBOL code fragment finds out the number of
    employees who live in a particular state, specified by the host
    language variable STATE:

    ACCEPT STATE.
    &RDB&   GET STATE-COUNT = COUNT OF E IN EMPLOYEES
    &RDB&            WITH E.STATE = STATE
    &RDB&   END_GET
            DISPLAY "Number of employees in ", STATE, " is ",
                STATE-COUNT.
Close Help