The Duplicate All Spooled Files command duplicates selected spooled
files from one output queue to another. The default is to duplicate
all spooled files. A variety of selection criteria exists.
You must be authorized to the TAADUPSPLF Authorization List to use
DUPALLSPLF.
If the NEWOWNER parameter is other than *SAME, you must be authorized
to the TAASPLDST Authorization List.
A typical command would be:
DUPALLSPLF FROMOUTQ(OUTQ1) TOOUTQ(OUTQ2)
All spooled files that are in a status of RDY, CLO, HLD, or SAV would
be duplicated. The owner of the spooled files would remain the same.
DUPALLSPLF escape messages you can monitor for
----------------------------------------------
TAA9891 None duplicated because of selection criteria.
TAA9892 Some failures occurred.
Escape messages from based on functions will be re-sent.
DUPALLSPLF Command parameters *CMD
-----------------------------
FROMOUTQ The "from" output queue. This is a qualified name
with the library defaulting to *LIBL. *CURLIB may
also be specified.
TOOUTQ The "to" output queue. This is a qualified name
with the library defaulting to *LIBL. *CURLIB may
also be specified.
NEWOWNER The owner of the new spooled files. The default is
*SAME meaning the existing spooled file owner is
also the owner of the new spooled file.
To specify a value other than *SAME, you must be
authorized to the TAASPLDST authorization list.
This is the same authorization list as used by the
SPLDST tool.
If you are authorized to the TAASPLDST authorization
list, you may specify:
OWNER(*USER). The the user of the job becomes the
owner of the new spooled file.
OWNER(xxxxx). The user name specified becomes the
owner of the spooled file and the job
FILE The spooled file name to select. The default is
*ALL. A specific or generic name may be entered.
USER The user name to select. The default is *ALL.
*CURRENT may be specified for the current user.
USRDTA The user data to select. The default is *ALL.
STATUS The spooled file status to select. *ALL is the
default meaning all spooled files with a status of
RDY, CLO, HLD, SAV, CHG, DFR, and RLS. A specific
entry may be made for RDY, CLO, HLD and SAV.
FORMTYPE The form type to select. The default is *ALL.
JOB The job name to select. The default is *ALL.
*CURRENT may be specified for the current job.
JOBNBR The job number to select. The default is *ALL.
*CURRENT may be specified for the current job
number.
FROMDATE The 'from date' to select for when the spooled file
was opened. *CURRENT is the default meaning the
current date. *NONE may be specified meaning all
dates are considered.
If a date is entered, it must be in job format. The
value must not be greater than the 'to date'. If a
date is entered, any spooled files where the open
date is less than the 'from date' will not be
selected.
TODATE The 'to date' to select for when the spooled file
was opened. *CURRENT is the default meaning the
current date.
If a date is entered, it must be in job format. The
value must not be less than the 'from date'. If a
date is entered, any spooled files where the open
date is greater than the 'to date' will not be
selected.
Restrictions
------------
You must be authorized to the TAADUPSPLF Authorization List.
If the NEWOWNER parameter is other than *SAME, you must be authorized
to the TAASPLDST Authorization List.
Prerequisites
-------------
The following TAA Tools must be on your system:
CHKGENERC Check generic
CHKOBJ3 Check object 3
CVTOUTQ Convert output queue
DUPSPLF Duplicate spooled file
EDTVAR Edit variable
RSNLSTMSG Resend last message
RTVDAT Retrieve date
SNDCOMPMSG Send completion message
SNDESCINF Send escape information
SNDESCMSG Send escape message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
DUPALLSPLF *CMD TAASPOY QATTCMD
TAASPOYC *PGM CLP TAASPOYC QATTCL
|