One of the commands that I use frequently, when helping my clients, is the work with spool file command or WRKSPLF. I've always used it with the user ID to see what files they have waiting to print or what page it has currently sending to the printer. The other day my backup showed me something about the command I never knew. In all the years I've used this command I never hit F4 to see all the parameters. Here they are:
Work with Spooled Files (WRKSPLF)
Type choices, press Enter.
Select files for: User . . . . . . . . . . . . . *CURRENT Name, *CURRENT, *ALL Print device . . . . . . . . . *ALL Name, *ALL, *OUTQ Form type . . . . . . . . . . *ALL Form type, *ALL, *STD User data . . . . . . . . . . *ALL User data, *ALL ASP . . . . . . . . . . . . . *ALL 1-16, *ALL Output . . . . . . . . . . . . . * *, *PRINT
Actually, there are two more additional parameters but I didn't find them very interesting.
A couple of the parameters can be very useful if the user has a lot of spool files on your system. Enter a specific printer name if you know it, or use *OUTQ to see the jobs that are not attached to a specific printer. The form type can be used to find specific types or filter them out by using the *STD parameter. I haven't found the user data or ASP parameters useful in my district. Changing the Output to *PRINT would send the list to your default printer.
As with most commands there are a few things I don't like about it. My biggest complaint is that I can't use a * when I don't know the exact user ID like I can with the WRKUSRPRF command. My other gripe is that I can't search for files on a specific outq like QNORMALP.
But, wait a minute; if you're not a stick in the mud "green-screen" geek like me, you'll find that Operations Navigator (now called iSeries Navigator) does a much better job with showing users spool files. Assuming you have enough authority open it up and double click your 400. Select Basic Operations and then Printer Output. If you go to Options and Include you'll find several improvements. You can browse your way to a specific user if you don't know the entire User ID. A new parameter output queue will allow you to enter or browse you way to a queue. The status box lets you choose one of 12 specific statuses like Ready or Not scheduled to print yet if you don't want them all. Another feature I like is the ability to an automatic refresh of the data rather than having to hit the F5 key. Of course there is some thing you can't do with the refresh rate, you can't hit the F5 key every nanosecond like I do.
I think I've just learned to check out some of the rest of my favorite green-screen commands in iSeries Navigator.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: Tips, tutorials and more.
Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.
Read this Search400 Featured Topic: Managing your iSeries.