COZZI-Work with My Print Files (WRKPRT)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The COZZI-Work with My Print Files (WRKPRT) command runs the WRKSPLF command but limits the displayed SPOOL file to those for the given date (which defaults to "today"). This is useful for users who retain a number of SPOOL files and yet want to "work with" only those that were created for their current job or for today.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
USER User profile or *JOB Generic name, name, *CURRENT, *JOB, *ALL Optional, Positional 1
DATE View Print Files Created on Date, *SYSDATE, *JOBDATE, *TODAY, *JOB, *YESTERDAY, *ALL, *CURRENT Optional, Positional 2
Top

User (generic, full, *ALL, *JOB) (USER)

Specify user whose SPOOL files are to be displayed.

*CURRENT
A list of SPOOL files created on the date specified by the current user (the one running the WRKPRT command) is displayed.
*JOB
A list of SPOOL files created within the current job (the one running the WRKPRT command) are displayed. When USER(*JOB) is specified, the DATE parameter is ignored.
*ALL
A list of SPOOL files created on the date specified by all users is displayed.
generic-name
A list of SPOOL files created by the User Profile(s) on the date specified are listed.
name
A list of SPOOL files created on the date specified, for the user profile named here, is displayed.
Top

View Print Files Created On (DATE)

Specify the date on which the SPOOL files are created and therefore included in the WRKSPLF list that is displayed.

*TODAY or *SYSDATE
The current QSYSVAL QDATE (system date) is retrieved and used to list SPOOL files that were created on that date for the user specified.
*JOB or *JOBDATE
The current Job Date is retrieved and used to list SPOOL files that were created on the job date for the specified user.
*YESTERDAY
The previous day's date is retrieved and used to list SPOOL files that were created on that date for the specified user.
*ALL
All SPOOL files created by for the user identified on the USER parameter are included, regardless of the date on which they were created.
date
All SPOOL files created on the specified date for the user specified on the USER parameter are listed.
Top

Examples for WRKPRT

Example 1: Simple WRKPRT

WRKPRT

Display all the SPOOL files created today for the user running the command.

Example 2: Specifying *JOB

WRKPRT *JOB

Display all the SPOOL files created within the current job. SPOOL files created by the current user within other jobs (event those jobs previously run today) are not included.

Example 3: Specifying Another User

WRKPRT QUSER

Display all the SPOOL files created by user profile QUSER that were create today. listed.

Top

Error messages

Unknown
Top