Replication procedure library
- Last Updated: August 8, 2023
- 1 minute read
- OpenEdge Pro2
- Version 6.5
- Documentation
The replication procedure library (ReplLib.p)
contains internal procedures and functions that handle general utility functions,
such as reading from and writing to configuration files, map files, and the
replication properties and controls tables. It is run persistently and is added to
either the session or procedure super stack.
Replication procedure library (
ReplLib.p)
reference:- The replication procedure library returns the name of the kill event using
RETURN-VALUE. - It subscribes to the ReplLibPing event which requires an
OUTPUTparameter ofHANDLEtype. It then returns the handle of the persistent instance of the library. And it is used to determine if the procedure is currently running. - The replication procedure library publishes no events.
Member Functions
| FUNCTION | Description | Parameters | Return |
|---|---|---|---|
formatDate |
Returns the input date value as a string in the form
YYYY-MM-DD and appends Midnight in the
format HH:MM:SS to it. |
INPUT DATE – The date to be formatted |
CHARACTER – The formatted date |
formatLogical |
Returns the input Logical variable as either a 1 (True) or a 0 (False) in Integer format. | INPUT LOGICAL – The logical variable to be
converted |
INTEGER – a Zero for False values or a One (1) for
True values |
getModDate |
Takes the input date and performs various manipulations to convert it
into a string such as Weekday, Month dd,
yyyy. |
INPUT DATE – The date to be converted |
CHARACTER – a string interpretation of the date as
per Description |
getModTime |
Takes the input time as an integer and outputs it as a character
string in the format HH:MM:SS (24 Hour Time
format). |
INPUT INTEGER – An integer value representing the
elapsed time of the current day, in seconds |
CHARACTER – a string interpretation of the time in
“HH:MM:SS” format |
| PROCEDURE | Description | Parameters |
|---|---|---|
LoadConfiguration |
Reads a pre-formatted configuration file and places the appropriate sections of that file into the control and properties tables of the Replication Database. This procedure overwrites current settings. | INPUT CHARACTER – a string representing the name of
the file from which to load. |
LoadMapFile |
Reads a pre-formatted map file and places the appropriate sections of that file into the database, table, and field cross-reference tables of the Replication Database. This procedure overwrites current maps with the same cross-reference codes. | INPUT CHARACTER – a string representing the name of
the file from which to load. |