+ Reply to Thread
Results 1 to 4 of 4

Thread: ovrprtf works in CLP *pgm but not CLP *mod

  1. #1

    Default ovrprtf works in CLP *pgm but not CLP *mod

    It is an activation group issue. Unless you are making many repetitive calls to the CL, I see no reason why you should use CLLE, as opposed to CLP. Dave

  2. #2
    Guest.Visitor Guest

    Default ovrprtf works in CLP *pgm but not CLP *mod

    Perhaps use of ovrscope would help?

  3. #3
    Guest.Visitor Guest

    Default ovrprtf works in CLP *pgm but not CLP *mod

    I have a clp doing an ovrprtf qsysprt hold(*yes) prior to running a report program for emailing. When I compile this as a *mod, then use callb from my (bound) interactive rpg to access it, it does not hold the print file. This in turn means it's not there to perform the email steps. When I compile it as a *pgm, then use call to access it from the same rpg, it does hold the print file. Any suggestions? Maybe a caller level or activation group issue?

  4. #4
    B.Bardini Guest

    Default ovrprtf works in CLP *pgm but not CLP *mod

    When you're doing the OVRPRTF in your CL module, you're running in an activation group. When your CL module does the CALLB, the RPG program is running in a different activation group, and the override does not apply to this new activation group. The problem arises because the "Override scope" default for the OVRPRTF command is *ACTGRPDFN. Prompt the command, and you can read about the OVRSCOPE parameter. If you change the OVRSCOPE on your OVRPRTF command to *JOB, you'll be OK. If you do a DLTOVR, you will also have to change it there, or you'll get an error on the DLTOVR. On the DLTOVR, you'll see that the parameter to change is the LVL parameter. Bruce

+ Reply to Thread

Similar Threads

  1. OVRPRTF & *DEV
    By dolfan in forum Document Management
    Replies: 0
    Last Post: 10-18-2007, 05:27 AM
  2. OVRPRTF
    By David Abramowitz in forum CL
    Replies: 3
    Last Post: 11-17-2005, 12:00 PM
  3. ovrprtf
    By Guest.Visitor in forum CL
    Replies: 1
    Last Post: 11-20-2002, 09:18 AM
  4. OVRPRTF
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 07-05-2001, 04:15 AM
  5. It works...but why?
    By Guest.Visitor in forum Programming
    Replies: 8
    Last Post: 09-04-1998, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts