Query on ovrdbf

670 pts.
Tags:
#AS400 #RPGLE #as400
My RPGLE program call stack is as follows -

Pgm1 calls Pgm2  calls Pgm3

Pgm1 overrides a file to library1
Pgm3 uses the same override

Now, in my Pgm2, I want to override the same file to my library, and then delete the override after Pgm3 call is completed from Pgm2.  Something as below in Pgm2.

Current call stack in pgm2:

Call pgm3 // Pgm3 uses override defined in Pgm1

Expected call stack in pgm2:

OVRDBF ***********
Call Pgm3         // Pgm3 should use override on my library rather than the one used in pgm1
DLTOVR ***********

Can someone tell me, how i should define OVRDBF and DLTOVR commands in Pgm2 for the same?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Got solution to this. I was missing SECURE(*YES) in OVRDBF

Discuss This Question: 2  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
    In order to know what DLTOVR might be used, we need to see the actual parameters of the OVRDBF command. Please post a copy.
    37,065 pointsBadges:
    report
  • sri8707
    @TheRealRaven,

    I used below override command in Pgm2, but found that Pgm3 was still using the override specified on Pgm1. 

    OVRDBF FILE(FILE1) TOFILE(MYLIB/FILE1) SHARE(*YES) OVRSCOPE(*CALLLVL)     
    670 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: