30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Spooling library<br />

Work management associated with the QSPL subsystem is similar to that for other<br />

subsystems as described in the Work <strong>Management</strong> book. To control the storage used<br />

on your system see “Spooling library”.<br />

The spooling library (QSPL) contains database files that are used to store data for<br />

inline data files and spooled files. Each file in library QSPL can have several<br />

members. Each member contains all the data for an inline data file or spooled file.<br />

When the spooled file is printed or deleted, its associated database member in the<br />

spooling library is cleared of records, but not removed, so that it can be used for<br />

another inline data file or spooled file. If no database members are available in<br />

library QSPL, then a member is automatically created.<br />

Printing a spooled file or clearing an output queue does not reduce the number of<br />

associated database members. If an excessive number of associated database<br />

members were created on your system (for example, if a program went into a loop<br />

and created thousands of spooled files), the spool database members use storage<br />

on the system even if you clear the output queue.<br />

Because the system keeps the date and time whenever a database member becomes<br />

available (for example, clearing of records after the spooled file has been printed or<br />

deleted), you can remove these spooled database members in the following ways:<br />

v QRCLSPLSTG system value<br />

When this system value is set, the system removes spool database members that<br />

have been available for more than the number of days specified by the system<br />

value. The default value is 8 days. Values that can be set for this system value<br />

are:<br />

– 1-366: Valid range of day values that can be set. When an available member is<br />

older than the set number of days, it is removed by the system.<br />

– *NOMAX: Available spool database members are never automatically<br />

removed. The user must use the Reclaim Spool Storage (RCLSPLSTG)<br />

command to remove these members.<br />

– *NONE: The database member is removed as soon as the spooled file is<br />

printed or deleted.<br />

Note: If *NONE is specified, you will never have available database members<br />

in QSPL. If there are no available members when subsequent inline<br />

data files or spooled files are created, the system creates members and<br />

allocates storage to be used. This slows down the jobs that are creating<br />

inline data files or spooled files. It is highly recommended that the<br />

system value never be set to *NONE.<br />

v RCLSPLSTG command<br />

Removes available database members that have been cleared of records for more<br />

than the number of days specified on the command. The command will run<br />

until it completes in the user’s process.<br />

The procedures previously described are the only allowable ways to remove<br />

spooled files from the QSPL library. Any other way can cause severe problems. It is<br />

best to keep the QSPL library small by periodically deleting old spooled files with<br />

Chapter 5. Working with spooled files 167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!