From Asentria Portal
Revision as of 19:21, 9 May 2019 by CGabelein (talk | contribs) (Created page with "{{notitle}}{{PDFlink}} <metadata> page_title = Delete File page_summary = Some commands that exit for the TeleBoss data buffers are not on the SiteBoss products. This article...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Delete File(n)



SA <filename> will release the data to the text editor, example SA (FILE1).

Adding a d to that command string will delete the records in the file, example SA (FILE1) d.

The disadvantage to deleting files this way is that if a file is very full it can take a long time to release to the text editor. The shortcut that increases the speed to clear a single file is to check how many records in the file using the dir command and then do a SA FILEn @recordCountMinusAFew D.

That deletes all the records too. So here is an example of me doing that:

>dir
Filename     Records
FILE1      00000792
FILE2      00000151
EVENTS     00000840
AUDIT      00001734
COMPLETE
>sa file1 @790 D
Test Record 1234563456789d123456789
Test Record 1234563456789d123456789

END DATA

>dir
Filename     Records
FILE1      00000000
FILE2      00000151
EVENTS     00000840
AUDIT      00001736
COMPLETE
>

To delete all records in all files, including the Audit and Event files, you can use execc dllcmd zero. That is a one shot command, but beware - it clears ALL files.