RDOHELP72.HLB  —  FINISH
    Explicitly declares a database closed when you are done working
    with it. FINISH with no parameter also commits all active
    transactions. It is recommended that you use FINISH before
    exiting from a program.

    Example:

    999-EOJ.
         IF BAD-FLAG = 1
               THEN
    &RDB&        ROLLBACK
               ELSE
    &RDB&        COMMIT
    &RDB&    FINISH
               CLOSE JOBHST-FILE.
               STOP RUN.
Additional Information: explode extract
More Format Example
Close Help