Purging Temporary Files
In most cases, WebDocs clears all temporary files for you. However, if your organization has special circumstances that require you to purge temporary files, there are two locations to clear: the RJSTEMP library and the /RJSTEMP IFS directory.
Warning: WebDocs is not the only RJS products that uses these directories. Do not run a purge command if there are any RJS Software products currently running on the iSeries or on a server that is connected to the iSeries. If you do, those products may generate errors or stop running. Only purge files in one of the following two situations:
- Your organization ends most jobs at night and uses a scheduler to start them again early in the morning. You can schedule the purge command to run before you start up the jobs running RJS Software products.
- After IPL. You can run the purge command before other jobs start.
To purge temporary files:
-
In the RJSTEMP library:
-
- Access the RJSTEMP library with the following command and type 5to display a list of temporary files:
WRKLIB RJSTEMP - Run DOCTMPPRGand specify how far back to delete temporary files.
For example: To delete temporary files older than 60 days, run:
DOCTMPPRG DAYS(60)
Note: The default number of days is 30.
- Access the RJSTEMP library with the following command and type 5to display a list of temporary files:
-
In the /RJSTEMP IFS directory:
-
- Access the /RJSTEMP directory with the following command and type 5 to display a list of files:
WRKLNK '/RJSTEMP' -
To purge a single file or an entire directory on the IFS, use the RMVLNK command.
Warning:Purging files permanently removes them from the system. This action cannot be undone.
For example:-
To purge the file TEST.PDF from the '/RJSTEMP' IFS directory:
RMVLNK OBJLNK('/RJSTEMP/TEST.PDF') -
To purge all files from the '/RJSTEMP' IFS directory:
RMVLNK OBJLNK('/RJSTEMP/*') -
To purge all files that start with the letters "RJS" from the '/RJSTEMP' IFS directory:
RMVLNK OBJLNK('/RJSTEMP/RJS*')
-
- Access the /RJSTEMP directory with the following command and type 5 to display a list of files: