Consultor Eletrônico



Kbase P14069: SAMPLE CODE to Dump Load .df and .d with Data Dictionary rou
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/31/2004
Status: Unverified

GOAL:

SAMPLE CODE to Dump Load .df and .d with Data Dictionary routines

FIX:

SAMPLE CODE to Dump Load .df and .d with Data Dictionary routines

INTRODUCTION:
=============

This solution contains two sample programs to dump and load data using
the Data Dictionary routines.

By default these routines will use the working database in the Data
Dictionary.

These samples program consider the case of multiples databases
connected into the PROGRESS session, by setting the alias DICTDB to
point to the desired database. Delete of the ALIAS at the end is only
required if dump/load of other databases follow the code.


/* dump.p */

CREATE ALIAS DICTDB FOR DATABASE sports.
DISPLAY LDBNAME("DICTDB").
RUN prodict/dump_df.p ("ALL","sports.df","").
RUN prodict/dump_d.p ("ALL",".","").
DELETE ALIAS DICTDB. /* Optional */

/* end of dump.p */

/* load.p */

CREATE ALIAS DICTDB FOR DATABASE sports.
DISPLAY LDBNAME("DICTDB").
RUN prodict/load_df.p ("sports.df").
RUN prodict/load_d.p ("ALL",".").
DELETE ALIAS DICTDB.
/* Optional */

/* end of load.p */

The source code of the Data Dictionary routines to dump/load data and
definitions are located in dlc/src/prodict.

Parameters required by the programs are documented at the top of each
program.

NOTE: Progress does not provide support for the modification and/or
use of these modules outside of the Data Dictionary.