Previous Topic: Steps for Data TransferNext Topic: Completing the Data Transfer


Example of Transferring Data Between Dictionaries

All records and elements that were prepared by or revised by user DBA are first transferred from dictionary TEST to dictionary PROD. Then, according to the statements below, the user:

  1. Signs on to the dictionary TEST and specifies that module PUNCH-ALL is to receive punched output; the REPLACE verb is used to delete existing source statements associated with PUNCH-ALL.
  2. Punches the desired elements and records, ensuring that subordinate elements precede group elements. Note that the PUNCH verb output contains the element/record name and version number only (for example, PUNCH RECORD A); no other entity-type options appear.
  3. Issues a REPLACE verb to delete any existing source statements associated with the module DECOMPILE (which is to be the default PUNCH destination).
  4. Establishes default DISPLAY/PUNCH processing options. By naming REPLACE as the default verb, the user accommodates record and element definitions that exist in the production dictionary.
  5. Issues an INCLUDE statement that executes the source statements in the module PUNCH-ALL. This step punches to the module DECOMPILE the detailed syntax for each element and record being transferred.

At the end of this series of steps, the module DECOMPILE is ready to be transferred to the dictionary PROD.

signon dictionary name is test.

replace module name is punch-all version is 1.

punch all elements
        where prepared by is 'dba' or revised by is 'dba'
        to module punch-all version is 1
        verb punch
        as syntax.

punch all records
        where prepared by is 'dba' or revised by is 'dba'
        to module punch-all version is 1
        verb punch
        as syntax.

replace module name is decompile version is 1.

set options for session
        punch to module decompile version is 1
        display as syntax verb replace.

include module punch-all.