Library /sys$common/syshlp/HELPLIB.HLB  —  RDML72  Statements  READY  Examples
    The following program fragments demonstrate the use of the READY
    statement to open a database. These program fragments:

    o  Use the DATABASE statement to declare the PERSONNEL database

    o  Declare a database handle PERS for PERSONNEL

    o  Open the PERSONNEL database with the READY statement

1  –  C Example

    #include <stdio.h>
    DATABASE PERS = FILENAME "PERSONNEL";
                         .
                         .
                         .
    main ()
    {
    READY PERS;
                         .
                         .
                         .

    FINISH PERS;
    }

2  –  Pascal Example

    program empupdate;
    DATABASE PERS = FILENAME 'PERSONNEL';
                         .
                         .
                         .
    begin
    READY PERS;
                         .
                         .
                         .

    FINISH PERS;
    end.
Close Help