RDOHELP72.HLB  —  EXPORT  Example
    Example 1

    The following example shows how to export a database to a disk
    file:

    RDO> EXPORT
    cont>  'DEPT3:PERSONNEL.RDB' INTO
    cont>  'EXPORT$DISK:[EXPORT]PERSONNEL.RBR'

    This statement creates an interchange file for the
    PERSONNEL database from the database file identified by
    DEPT3:PERSONNEL.RDB. DEPT3 in this case is a logical name for
    the device and directory where the database is located. The copy
    is stored on EXPORT$DISK in the directory [EXPORT]. By default,
    the database is exported WITH EXTENSIONS and WITH DATA.

    Example 2

    The following example shows how to export a database to a
    magnetic tape volume:

    $ INITIALIZE MUA0:
    _Label:  PERS
    $
    $ MOUNT MUA0:
    _Label:  PERS
    _Log name:
    $ RDO
    RDO> EXPORT 'DEPT3:PERSONNEL.RDB' INTO 'MUA0:PERSONNEL.RBR'

    This statement creates an intermediate copy of the database on
    the magnetic tape volume labeled PERS, mounted on device MUA0:.

    Example 3

    The following example shows how to export the metadata in a
    database without its data:

    RDO> EXPORT
    cont>  'DEPT3:PERSONNEL.RDB' INTO
    cont>  'EXPORT$DISK:[EXPORT]PERSONNEL.RBR'
    cont>  WITH NODATA

    This statement creates an interchange file for the
    PERSONNEL database from the database file identified by
    DEPT3:PERSONNEL.RDB. The WITH NODATA option specifies that the
    interchange file, PERSONNEL.RBR, contains only the metadata that
    defines the structure of PERSONNEL.RDB.
Close Help