Deleting spool files

Deleting spool files

Deleting spool files

Deleting spool files with the help of the ISPF online application is not supported by Adabas Audit Data Retrieval. Use the program BST05CMD instead (see "Notes on model spool file definitions" in BSA Installation and System Guide).

Deleting a spool file includes two steps:

  1. The program BST05CMD removes the entry of the spool file from the Adabas Audit Data Retrieval database definition file (BETA97.DB.DEF). The Adabas Audit Data Retrieval started task must be stopped when you do this.
  2. With the help of the IBM utility IDCAMS or ISPF online option 3.4, the spool file is deleted physically.

Important: Make sure that the physical deletion of a file will not lead to the loss of data that is still needed. If you have removed a wrong entry from the database definition file by mistake, you can reinsert this entry with the help of the program BST05CMD, provided that the original ID of this file has not been reassigned.

Status must be EMP, MOD, or ERR: The program BST05CMD checks the status of the spool file before removing its entry. It is only possible to delete a spool file if its status is EMP (empty), MOD (model) or ERR (error).

Emptying spool files

If you want to remove a spool file that is not empty, begin by changing the status of the spool file to Read-Only. This prevents new data from being added to this spool file, but ensures that data currently on this spool file remains available to the system.

To change the status of a spool file to Read-Only:

  1. Stop the Adabas Audit Data Retrieval reader started task.
  2. In the Dataset Definition Selection panel, enter line command S in front of the spool file.
  3. Specify Yes in the Data Set Status Readonly field and press ENTER.
  4. Restart the Adabas Audit Data Retrieval reader started task.

As to the data remaining in this spool file, you have two options:

  • You wait until online cleanup jobs have finished removing the data from the spool file and the status of the spool file has eventually become EMP (empty).
  • You "migrate" the spool content by completely reloading the affected data from the archive. This will render the data contained in the spool file obsolete.

Note: Read-only spool files are always checked at startup to ensure the deletion of unused reader blocks, irrespective of the value of the LST parameter BQL_SPOOLCHECK.