House Keeping (Erasing .$$$ Files)

Here is a routine that you can use to automatically take care of such
housekeeping without having to worry about all error messages and the
SCRATCH settings, etc.

-- House Keeping
-- Start here ...
   SET VAR vFolderAndFiles TEXT = NULL
   SET VAR vFolderAndFiles = ((CVAL('SCRATCH'))+'\*.$$$')
   SET ERROR MESSAGE 2262 OFF
   SET ERROR MESSAGE 2263 OFF
   SET ERROR MESSAGE 2926 OFF
   DELETE &vFolderAndFiles
   SET ERROR MESSAGE 2926 ON
   SET ERROR MESSAGE 2263 ON
   SET ERROR MESSAGE 2262 ON
   CLEAR VARIABLE vFolderAndFiles
-- End here ...

Have fun implementing this technique in your application startup or
exit routines!

Very Best R:egards,

Razzak.


Reply via email to