OVRPTF working some times

30 pts.
Tags:
iSeries print file
In a CL program I have the following OVRPRTF command

OVRPRTF FILE(BSPP460) TOFILE(BSPP460) PAGESIZE(80 + 80) LPI(6) CPI(10) PAGRTT(0) SPOOL(*YES) + OUTQ(&RVIOUTQ) USRDTA(BSPR460) + SPLFNAME(BSPP460) OVRSCOPE(*CALLLVL) .

When the CL is called or submitted from a command line, the OVRPRTF works.

The CL is new and is called from another CL, that is part of a job stream that has been submitted to batch.  When it is called in this manner.   The OVRPRTF does not work.

The file used to create the print file is cleared at the end of the job stream, so it can not be a separate job .  


Software/Hardware used:
iSeries
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Does the CL with OVRPRTF also create the spooled file? Is there a reason you needed OVRSCOPE(*CALLLVL) rather than OVRSCOPE(*JOB)? Are there other overrides in the failing job that might conflict?

    Most important, what does "does not work" mean? What happens different from what you expect to happen?
    35,660 pointsBadges:
    report
  • ToddN2000
    If it's not working,  do the spool file values match what you are trying to override? I'm thinking the submitted job is going to have different a different USRDTA value.
    133,790 pointsBadges:
    report
  • lgronewold
    What I meant by it didn't work, is that override was to place it in a specific output queue.  When it the CL was called from a command line, the output was placed in the output queue that I was trying to override to.  When it was part of the submitted job, it was not placed in the output queue, I wanted it to be placed.

    I used the OVRSCOPE(*CALLVL) because it was used in other jobs, that moved output to output queue in the over ride command.

    When I changed the code so that it said OVRSCOPE(*JOB) it did not work.  

    Thank you both for your help.,

    30 pointsBadges:
    report
  • TheRealRaven
    ToddN2000's suggestion of checking the USRDTA value of the spooled file is a good one.

    Can we assume that you're currently learning about how OVRPRTF works?
    35,660 pointsBadges:
    report
  • ToddN2000
    The USRDTA basically tells who created the spool. IF you are submitting this it may have a different user ID than you command line call. Check the USRDTA value of the submitted spool file that is in the wrong outputq and see what it's USRDTA value is.

    133,790 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: