Consultor Eletrônico



Kbase 17590: SAMPLE CODE to Dump Load .df,.d w/ Data Dictionary routines
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/10/1999
SAMPLE CODE to Dump Load .df,.d w/ Data Dictionary routines

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

This kbase contains two samples program 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 programas 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.


EDSEL 01/21/98

Progress Software Technical Support Note # 17590