Spooled file security

Spooled security is primarily controlled through the output queue that contains the spooled files.

Start of changeIn general, there are five ways that a user can become authorized to control a spooled file (for example, hold or release the spooled file):End of change

Start of changeFor the Copy Spooled File (CPYSPLF), Display Spooled File (DSPSPLF), and Send Network Spooled File (SNDNETSPLF) commands, in addition to the five ways already listed, there is an additional way a user can be authorized.End of change

Start of changeIf DSPDTA(*YES) was specified when the output queue was created, any user with *USE authority to the output queue is allowed to copy, display, send, or move spooled files assuming that the user is not stopped by the use of a spooled file security exit program. The specific authority required is *READ data authority.End of change

Start of changeIf the user is authorized to control the file by one of the five ways already listed previously, using DSPDTA(*NO) when creating the output queue will not restrict the user from displaying, copying, or sending the file. DSPDTA authority is only checked if the user is not otherwise authorized to the file.End of change

Start of changeDSPDTA(*OWNER) is more restrictive than DSPDTA(*NO). If the output queue is created with DSPDTA(*OWNER), only the owner of the spooled file (the person who created it), a user with SPCAUT(*SPLCTL), or a user granted access by the use of a spooled file security exit program can display, copy, or send a file on that queue. Even users with SPCAUT(*JOBCTL) on an operator-controlled (OPRCTL(*YES)) output queue cannot display, copy, move, or send spooled files they do not own.End of change

See the Security topic for details about the authority requirements for individual commands.

To place a spooled file on an output queue, one of the following authorities is required: