HELPLIB.HLB  —  RDML72  Statements  READY
    Explicitly declares your intention to access one or more
    databases and causes an attach to the database.

1  –  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.1  –  C Example

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

    FINISH PERS;
    }

1.2  –  Pascal Example

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

    FINISH PERS;
    end.

2  –  Format

  (B)0READY qqqwqqqq>qqqqqqqqqqqqqqwqqqwqqqq>qqqqqqqqqqqqqwqqqqq>
           mqwqq> db-handle qwqj   mqqqq> on-error qqqj
             mqqqqqq , <qqqqqj

2.1  –  Format arguments

    db-handle              Database handle. A host variable used
                           to refer to a specific database you have
                           invoked. For more information see the
                           entry on the Database Handle clause.

    on-error               The ON ERROR clause. Specifies host
                           language statement(s) to be executed if an
                           error occurs during the READY operation.
                           For more information see the entry on ON
                           ERROR.
Close Help