Replication procedure library
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
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 added to either the session or procedure SUPER stack.
ReplLib.p
- Returns the name of the Kill Event via
RETURN-VALUE - Subscribes to the following events:
- ReplLibPing
- Requires an OUTPUT parameter of type HANDLE
- Returns the handle of the persistent instance of the library.
- Used to determine if the procedure is currently running.
- ReplLibPing
- 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 (0) 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. |