What you should do when a spool file has the status error

What you should do when a spool file has the status error

Overview

When a spool file has the status error, find out what type of error has caused the error status:

  • Error when allocating the spool file
  • Error when formatting the spool file
  • Error when opening the spool file

This section describes how you can find this out and what you should do after you have found out.

Opening error

When an error occurs while opening a spool file, the corresponding IDC error message is written to the log of the started task.

Search the log of the started task for the name of the spool file in question to find out whether there is an error message of this type. If you find this error message, stop the corresponding system and (with the help of your system programmer) check why the spool file could not be accessed (volume not available, etc.).

Warning: Do not use the line command R (Reset) with an existing VSAM file. Resetting the status of an existing VSAM file to MODEL would make the data in this spool file unavailable.

Formatting error

When there is an error when formatting a spool file, a log is written to DD SYSPRINT of the started task.

Check whether a formatting error was logged in DD SYSPRINT. If yes, use the line command R to reset the status of the spool file to MODEL.

Allocation error

When there is an error when allocating a spool file, a log is written to DD SYSPRINT of the started task.

Check whether an allocation error was logged in DD SYSPRINT. If yes, remove the cause of this error (security, space, etc.) and use the line command R to reset the status of the spool file to MODEL.