Midrange News for the IBM i Community


Posted by: Viking
Information Systems
CA
OVRPRTF Question
has no ratings.
Published: 19 Sep 2011
Revised: 23 Jan 2013 - 1783 days ago
Last viewed on: 11 Dec 2017 (5931 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

OVRPRTF Question Published by: Viking on 19 Sep 2011 view comments(5)

Hi all,

Something simple I need a little refresher/clarification on: 

PGM                                                      
                                                         
OVRPRTF    FILE(QSYSPRT) HOLD(*YES) OVRSCOPE(*JOB)       
RUNSQLSTM  SRCFILE(QSQLSRC) SRCMBR(DLTREQS) COMMIT(*NONE)
DLTOVR     FILE(QSYSPRT)                                 
                                                         
ENDPGM                                                   

When this runs, the override is successful, but the DLTOVR gives me CPF9841 "Override not found at specified level". Why is that and what is the correct way to create and delete this printer file override?

Thanks.

 

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: dzarder
Premium member *
Port Washington, WI
Comment on: OVRPRTF Question
Posted: 6 years 2 months 25 days 5 hours 46 minutes ago

Have you tried specifying LVL(*JOB) on the DLTOVR command?

Posted by: dzarder
Premium member *
Port Washington, WI
Comment on: OVRPRTF Question
Posted: 6 years 2 months 25 days 5 hours 42 minutes ago

Does anyone else get a dialog box popping up when they view this particular topic that says:

 

Syntax Highlighter

Can't find brush for : clp

 

? ? ?

Posted by: neilrh
Premium member *
Jackson, MI
Comment on: OVRPRTF Question
Posted: 6 years 2 months 25 days 5 hours 37 minutes ago

Yup, I got the syntax highlighter error too.

And you are correct on the DLTOVR, in that you need to specify the override level.  The rule being that your override scope must match between application and removal.

Posted by: Viking
Premium member *
CA
Comment on: OVRPRTF Question
Posted: 6 years 2 months 25 days 5 hours 26 minutes ago

Ever since I posted this topic, I'm getting that syntax highligher message popping up too...

 

And yes, of course I forgot that when i don't specify on the dltovr, the default is actgrp which doesn't match the level of the ovrprtf... thanks.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: OVRPRTF Question
Posted: 6 years 2 months 24 days 19 hours 13 minutes ago
The syntax highlighter msg is my fault. I deleted it when I updated the site. I can't fix it until I return next week. Don't worry about it for now.