Storing and printing spooled files
This topic provides instructions for storing and printing spooled files on a disk pool group.
If you choose to store external resources for spooled files in a disk pool group, you must be aware of the printing implications. You can store the external resources such as, Advanced Function Presentation (AFP) objects such as *FNTRSC, *FORMDF, *OVL, *PAGDFN, *PAGSEG, and non-AFP resources in a disk pool group. In order for the printer writer job to access these objects, you must set the disk pool so that it exists in the library namespace with the writer job.
Follow these steps to set the disk pool in the library namespace of the writer job:
- Make sure that the disk pool group that contains the external resources is available.
- Set the disk pool group for the current thread using the SETASPGRP (Set ASP Group) command (disk-pool-group-name).
- Print the spooled file using the STRPRTWTR (Start Printer Writer) command (printer-device-name).
Consider the following environment:
- Two or more systems in a cluster
- A switchable disk pool to be switch between two or more systems in a cluster
- Spooled files using external resources are placed onto the switchable disk pool
- The external resources are in *SYSBAS
To print a spooled file correctly, from any system in the cluster, the external resources must reside in the same libraries on each of the systems in the cluster.
If a spooled file is not with its' external resource in the disk pool that is in a switchable disk environment, then the external resource must exist in the same library on both systems. If the external resource is not in the same disk pool as the spooled file or the external resources are not stored in both libraries on the systems, then the spooled file cannot be read.
Only one version of a spooled file is allowed to exist in a namespace. A spooled file cannot be:
- Restored into *SYSBAS if it already exists in a disk pool.
- Restored into a disk pool if it already exists in *SYSBAS.
- Moved from disk pool to *SYSBAS if it already exists in another disk pool.
- View the job log for the job that attempted to vary on the disk pool for a list of duplicate spooled files in *SYSBAS.
- Use the Delete Spooled File (DLTSPLF) command to delete the duplicate spooled files in *SYSBAS.
- Vary off the disk pool.
- Vary on the disk pool.