You Can View User Feedback To This Tip
Wouldn't it be nice to have a "simple" process for distributing copies of spool files to different printers? Or one that just uses basic OS/400 commands and definitions?
Well, you can, with just a few simple user profiles, distribution entries and the SNDNETSPLF command.
Here are the pieces:
[TABLE]
Say we have 20 printers spread around the company, and we want to be able to route copies of spool files to anyone of them.
In this example, each print writer has an output queue associated with it that has same name as the print writer.
Here is what you can do:
That's all there is to setting it up. When the SNDNETSPLF command is used, it will package up an exact copy of a spool file and send it to the output queue defined for the user profile associated with the System Distribution Entry you specify.
To send a copy of a spool file to a printer you could do any of the following.
Use Option 1 (Send) from the WRKOUTQ or WRKSPLF display and hit F4 to prompt.
Specify the System Distribution List entry for one of the printers as
TOUSRID (PRT01 PRINTER) ....
Hit enter, and away it goes.
You can also put a " + for more values " and enter a list of printe
To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

rs to send copies to.
In a CLP you would just use the SNDNETSPLF command with a single user ID or list of User IDs:
Don't limit yourself to sending just to printer IDs either. You can specify any System Distribution Entry, so you can send spool file copies to output queues associated with any user profile on the system or to users on remote iSeries systems if you have a SNADS network set up.
Example: To send a copy of a spool file to writers PRT01, PRT02 and to myself
There ya go. See how simple this is. AND there is no need to copy spool file data into a database file and then turn around and recreate the file. OS/400 takes care of everything.
I hope you find this to be as useful in your everyday working environment as I do in mine.
---------------------------
About the author: Kenneth is a senior AS/400e system administrator at Northwest Natural Gas in Portland, Ore. He has extensive experience in all aspects of iSeries systems management. That includes proactive performance tuning, system software upgrades and maintenance, hardware upgrade planning, backup/recovery procedures and security.
==================================
MORE INFORMATION
==================================
USER FEEDBACK TO THIS TIP