return to PRS Technologies website
tc_erase.4ge |
This program is used to erase time and costs globally, particularly in the case of inadvertent duplicate loads of time and cost files. In the past, duplicate finalized records were handled by going into dbaccess and using SQL statements to change the status to E and delete any audit and glpost records, requiring a Check History tables be run in order to update the history tables. This Global Erase program is designed to obviate that procedure. Note: This program DOES NOT DELETE any records.
When the Global Erase program is used, the records are updated with a bill status of E, appropriate audit and glpost records are created and the history tables are updated accordingly. After the audit records have been created by the Global Erase program, it is necessary to gather them into an audit batch and then finalize the audit batch in order to post the glpost records to the general ledger. Note: This step is the same as if the user modified each record manually.
This program is not available through the Elite menus. It must be run from a command line using the following syntax:
tc_erase.4ge timecard "tmatter='1000-001'" SCAN RC >repfile.out
Any values for character fields within the SQL statement should be contained in lower case quotes (' '). For example, to globally erase all time entries for matter 1000-001, enter "tmatter='1000-001'" (since the matter number field is a character field, enter lower case quotes (' ') around the matter number). To globally erase all costs for batch 100, enter "bbatch=100" (since the batch field is a serial field, the batch number does not need to be enclosed in quotes).
If it appears the SCAN pass returned too many records, check the WHERE condition and change the statement as necessary.
When a RUN pass is generated, the program displays a list of the timecard index numbers (or cost index numbers) that were updated. When the update is completed, all the selected records will have a status of "E" (Erased), the values on the record are zeroed, and a TME (time modify erase) or CME (cost modify erase) audit record is inserted into the audit table. (If the record has an NB status to begin with, the audit record is created with the appropriate audit code, TMENB or CMENB.) Appropriate G/L post records and history table modifications are also created at RUN time.
To run this program in background, enter the syntax is as follows:
nohup tc_erase.4ge timecard "matter='1000-001'" SCAN RC >repfile.out &