Another option would be to just do a cpysplf to the database file you created after your WRKJOBSCDE OUTPUT(*PRINT) command.
Thanks,
Jay Jernigan
Alamance Regional Medical Center
Financial Analyst
jjernigan@xxxxxxxx
336-538-8299
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jason Abreu
Sent: Monday, December 13, 2010 10:57 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: OVRDBF FILE(QSYSPRT) Returning Error
On 12/13/2010 10:29 AM, Charles Wilt wrote:
Perhaps because you're using OVRDBF instead of OVRPRTF?
Try not to give yourself a concussion when slapping your
forehead....forest and trees...happens to everybody...sometimes you
need that fresh pair of eyes :)
Charles
On Mon, Dec 13, 2010 at 10:05 AM, Jason Abreu
<jason.abreu@xxxxxxxxxxxxxxxxxxxx> wrote:
My test code is as follows:
PGM
CRTPF FILE(QTEMP/TESTOVR) RCDLEN(132)
OVRDBF FILE(QSYSPRT) TOFILE(QTEMP/TESTOVR)
WRKJOBSCDE OUTPUT(*PRINT)
ENDPGM
However, the job fails with:
CPF9850 - Override of printer file QSYSPRT not allowed.
Any ideas why this simple override is not working?
--
Jason Abreu
Abreu Innovations, Inc.
jason.abreu@xxxxxxxxxxxxxxxxxxxx
http://www.abreuinnovations.com/
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To 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.
Okay, I substituted OVRDBF with OVRPRTF. The results are the same.
The job fails with a message "Override of printer file QSYSPRT not allowed."
It appears the system does not allow any overrides on system-defined
print files? I swear I have done this before, somewhere (been quite a
few years, though), and have seen examples of doing this via google
searches as a solution to some issues (spooled output from runsqlstm).
--
Jason Abreu
Abreu Innovations, Inc.
jason.abreu@xxxxxxxxxxxxxxxxxxxx
http://www.abreuinnovations.com/
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To 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.
______________________________________________________________________
Notice: The information contained in this message (Including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally protected from disclosure. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the Sender immediately by replying to the message and deleting it from your computer. ______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.