VMS Help  —  PMDF  DB  Commands  Write
    Syntax: write file-name [alias]

    The write command is used to create a command file which, when
    fed back into DB with the < or << commands, will recreate the
    entire database. If the alias keyword is specified, then a PMDF
    alias file (using PMDF's alias file format) will instead be
    produced.

    For instance, the following commands will create a database named
    DB2.DAT which duplicates the database DB1.DAT:

    db> open db1.dat
    db> write make.com
    db> open db2.dat
    [creating database]
    db> <<make.com
    db>

    The above example presupposes the existence of a database named
    DB1.DAT. The file MAKE.COM created with the write command is an
    ordinary text file which can be edited with any text editor.

    Note that this is not an efficient way to duplicate a database
    - the DCL COPY command works much faster. The write command is
    intended as a means of creating a textual representation of a
    database which can be edited as a text file and later turned back
    into a database.
Close Help