|
Hi, Gerald:In the scenario below, I use the system provided printer file QSYSPRT, but in your case, you might be using QPRINT or some other non-IBM supplied printer file. (You should be able to tell based on the name of the spool file in question.)
1. create a physical file with record length 133, as in: CRTPF yourlib/PRT133 RCDLEN(133) MAXMBRS(*NOMAX) (Note: you could also specify MAXMBRS(3) or whatever value you need.) 2. add a member to it, such as: ADDPFM yourlib/PRT133 QSYSPRT(Note: I use QSYSPRT as an example only -- your spool file name may be different.)
3. copy the spool file in question into the physical file member, with forms control characters in column 1:
CPYSPLF FILE(QSYSPRT) TOFILE(yourlib/PRT133) JOB(123456/username/jobname) +
TOMBR(QSYSPRT) CTLCHAR(*FCFC)(Note: it is important to specify CTLCHAR *FCFC to preserve spacing and pagination.)
4. create a duplicate of QSYSPRT *FILE PRTF in QSYS into another library: CRTDUPOBJ OBJ(QSYSPRT) FROMLIB(QSYS) OBJTYPE(*FILE) TOLIB(yourlib) 5. change yourlib/QSYSPRT to specify CTLCHAR(*FCFC) CHGPRTF FILE(yourlib/QSYSPRT) CTLCHAR(*FCFC)6. submit a job to run as the user who you want to "own" the spool file, e.g.:
SBMJOB CMD(CPYF FROMFILE(yourlib/PRT133) TOFILE(yourlib/QSYSPRT) + FROMMBR(QSYSPRT) MBROPT(*ADD)) JOB(PRTSPLF) USER(otheruser)(Note: ensure that "otheruser" has authority to "yourlib" and the QSYSPRT *FILE in yourlib.)
That should do it... Regards, Mark S. Waterbury----- Original Message -----
From: <GKern@xxxxxxxxxxxxxxxx> To: <midrange-l@xxxxxxxxxxxx> Sent: Thursday, June 22, 2006 8:50 AM Subject: Sending Spool Files
Without resorting to SNADS, is there a way to send spool files to another user on the same (or a different system)? I see in iSeries navigator that it offers two options, one to send via TCP (which doesn't offer a way to send it to a specific user id) and two, send via SNA. I'm not looking to email or pdf the spool file. I just want a method like option 1 that allows me to specify a user id and system name to send the spool file to. I have a user who had to rerun a job and the spool files are on her outq and will remain there for almost a year. Hence the reason she would like them sent to the user who should have originally generated them. Thanks, Jerry Gerald Kern - MIS Project Leader Lotus Notes/Domino Administrator IBM Certified RPG IV Developer The Toledo Clinic, Inc. 4235 Secor Road Toledo, OH 43623-4299 Phone 419-479-5535 gkern@xxxxxxxxxxxxxxxx This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please inform the sender by reply e-mail and destroy this and all copies of this message. --This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing listTo post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.