Consultor Eletrônico



Kbase 17599: How to Synchronize AS/400 Schema Holder Using 4GL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/08/2003
Status: Unverified

GOAL:

How to synchronize the AS/400 schema holder using 4GL?

FIX:

As it is documented in the Progress/400 DataServer Guide, it is possible to synchronize the AS/400 schema holder from a 4GL application by calling the as4sync.p procedure.

This procedure is for application developers to use for synchronizing AS/400 schema from their application without the user having to have access to the Data Administration tool. The procedure that is called is the same procedure which will be run if Synchronize PROGRESS/400 Client utility is run from that tool without any I/O.

How to use this procedure:

1. The AS/400 database must be connected.

2. The procedure works silently except in the follwoing cases:
a) Someone is defining schema and a sync can not be performed.
b) Trying to synchronize a database with no schema defined.

3. This procedure must be compiled with "dlc/src" in the propath. If
PROGRESS was installed in a directory other than "dlc", than that
directory plus "src" must be added. It is recommended to add this
directory at the end of the PROPATH string.

Example:
RUN as4dict/as4sync.p (INPUT "dbname").

where dbname is the name of the AS/400 database, not the schema holder.