Copyright © 1995, 2000, Oracle Corporation. All rights reserved. Using the Online Program Examples for RDO, RDML, and RDBPRE Online sample programs are available for use with the RDBPRE and RDML preprocessors and with Callable RDO. These programs are in the directory specified by the logical name RDM$DEMO. You can create an executable form (image) of any source program example for which your system has language support and then run the image to see how the program works. You can also create hardcopy listings of program sources and use them as references when you create your own applications. This file describes the RDBPRE, RDML, and Callable RDO sample programs. Online Program Examples The exact file names for the sample programs vary depending on the source language and the interface being used. File names containing the following strings are available: o SAMPLE A program that performs numerous data manipulation opera- tions on the sample personnel database. Note that you can use the sample program C_SAMPLE.RC only with the RDO version of the MF_PERSONNEL database. For exam- ple, use the following command to create the database: $ @SQL$SAMPLE:PERSONNEL RDO M NOCDD o CALL_OTHER A module called from the SAMPLE program that passes that program information for preprocessing and returns control to the SAMPLE program. o ERROR A module that handles run-time errors for the SAMPLE pro- gram. o DEPTFOR.FOR A program that performs several data manipulation operations on the PERSONNEL database. o F_DDL_STMNT.FOR 1 A program that demonstrates how to perform data definition tasks from an RDBPRE FORTRAN program using Callable RDO. Table 1 lists the available programs with their supported lan- guages, and indicates the applicable interface. Table_1:__Online_Program_Examples_for_RDBPRE_and_RDML__________ Language___Program__________________________Interface__________ BASIC B_SAMPLE.RBA RDBPRE B_CALL_OTHER.RBA RDBPRE B_CALLABLE_ERROR_HANDLER.BAS Callable RDO B_ERROR_HANDLER.BAS RDBPRE COBOL COB_SAMPLE.RCO RDBPRE COB_CALL_OTHER.RCO RDBPRE COB_CALLABLE_ERROR_HANDLER.RCO Callable RDO FORTRAN F_SAMPLE.RFO [1] RDBPRE F_CALLABLE.FOR Callable RDO F_CALLABLE_ERROR_HANDLER.FOR Callable RDO DEPTFOR.FOR Callable RDO F_DDL_STMNT.FOR RDBPRE/Callable RDO C C_SAMPLE.RC RDML C_CALL_OTHER.RC RDML C_ERROR.RC RDML Pascal P_SAMPLE.RPA RDML P_CALL_OTHER.RPA RDML P_ERROR.RPA RDML PL/I PLI_SAMPLE.PLI Callable RDO PLI_CALL_OTHER.PLI Callable RDO _______________________________________________________________ [1]Calls many other programs _______________________________________________________________ For information about compiling, linking, and running RDBPRE programs, see the Help topic RDBPRE. For information about compiling, linking, and running RDML programs, see RDML Help. 2