The Compare & Set Delete is a SQL interface to a host system that compares the existing orders in a host database to the existing orders in the DMS database. If the order does not exist in the host system, but does exist in the DMS database, the order in the DMS database will have its Job Status set to a user given value.
The status of a Compare & Set Delete execution is logged in the database. To view the log, select View Log from Compare & Set Delete or from the DMS Monthly Calendar Menu, select Interface | Display Logs.
The compare and set delete has a SQL script that need to be defined as well as the execution of the command either manually or by a command file:
Compare & Set Delete SQL Scripts
Before adding a new script to compare and set delete, a connection string to the host must be setup in DMS (see External Database Connection for more information). Also, a Job State to set the Jobs not found in the host system needs to be added to DMS. To easily identify jobs not in the host system, the Job State could be something like Deleted in CP or Deleted in Host, etc.
To define compare and set delete SQL scripts, select Interface | Import settings | Compare & set Delete SQL Scripts. A window will appear with the current list of defined SQL scripts in the tree. The example below shows two defined SQL scripts in the tree:
The following prompts are required for setting up the Compare & Set Delete:
The Compare & Set Delete runs the defined SQL script and is executed from either a command file or from the DMS Monthly Calendar Menu, Interface | Compare & Set Delete as per the example below:
To view the logs of Compare & Set Delete, click on the Display Log button.
Enter the Script Name to run and press OK. DMS confirms the run with the window:
Press OK to run the script or press Cancel to cancel the run.