RDOHELP72.HLB  —  PRINT  More
    If you have invoked a database, you have the necessary privileges
    to use the PRINT statement.

    You can use the PRINT statement in three ways:

    o  When you establish a record stream with the FOR or START_
       STREAM statement, you use the PRINT statement to write values
       from the current record stream to the output device. In the
       case of START_STREAM, you also need FETCH to indicate the
       current record in the stream.

    o  You can also use PRINT alone, without a FOR or FETCH
       statement, to retrieve the result of a statistical function.
       The record stream is formed by the record selection expression
       within the statistical expression.

    o  You can use PRINT...RDB$DB_KEY in a STORE...END_STORE block to
       display the database key of the record just stored. Example:

       RDO> STORE E IN EMPLOYEES USING
       cont>  E.EMPLOYEE_ID = "15231";
       cont>  E.LAST_NAME = "Smith";
       cont>   PRINT E.RDB$DB_KEY
       cont> END_STORE
                   RDB$DB_KEY
                     21:339:0
Close Help