Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In a particular program one file is used where override
command is applied to a file, now this program calls
another program where we want to use the same file but
without override.How it can be done?

Answers were Sorted based on User's Feedback



In a particular program one file is used where override command is applied to a file, now this pro..

Answer / syam

Before calling another program use DLTOVR fileName LVL(*).

LVL(*) = Call Level (*CALLLVL)

If I am wrong pls correct

Is This Answer Correct ?    15 Yes 1 No

In a particular program one file is used where override command is applied to a file, now this pro..

Answer / syam

Sekhar214's answer is correct....Thanks

DLTOVR FILE(Filename) LVL(*JOB)

Is This Answer Correct ?    3 Yes 0 No

In a particular program one file is used where override command is applied to a file, now this pro..

Answer / david lex

The question is somewhat ambiguous. The OVRDBF command
contains MANY parameters, all of which have a very
different impact on the file.
Very often the OVRDBF is used to access the same file in a
different library, but that is not always the case.

It is also of note that the TYPE of programs are not
mentioned - are they CL, CLLE, OPM RPG, ILE RPG, COBOL...
or a combination? It does make a difference, specifically
as to whether you even need to take this approach.

The most common scenario is a CL overriding a file/Lib1 to
file/Lib2 then calling an RPG/Cobol pgm. But in this
scenario the override is generally required in the
RPG/Cobol program.

Answer one does not address the override. Unless using
embedded SQL or some non standard technique, one must
include the file being used in the F-specs regardless of an
override scenario.

Answer two (with nuances) will have the desired effect, but
there are other things to consider before merely removing
the override.

Do you need the override in place upon return to the
calling program? If you do, you'll have to re-issue the
override.

Additionally, the call level on the DLTOVR command must be
the same that was on the original OVRDBF issued, otherwise
it will fail (albeit silently) with something
like 'Override not found at specified level'.

Defaults on the system in question also come into play.
What is your default activation group?

There are a variety of ways to handle this, each with
strengths & weaknesses.

Embedded SQL, new activation groups, using a QUALIFIED file
opening, call stored procedures, exported procedures in a
service program, etc.

It VERY much depends on the original intention of the file
override to begin with.

Is This Answer Correct ?    2 Yes 0 No

In a particular program one file is used where override command is applied to a file, now this pro..

Answer / vivek dwivedi

Share ODM (*NO)

Is This Answer Correct ?    0 Yes 0 No

In a particular program one file is used where override command is applied to a file, now this pro..

Answer / sekhar214

Depends on the coding. If that is an interactive JOB and OVERSCOPE os on *JOB level, you have delete the overrides.

DLTOVR *ALL LVL(*JOB)

If that is a batch job , no impact on other jobs.

Is This Answer Correct ?    0 Yes 1 No

In a particular program one file is used where override command is applied to a file, now this pro..

Answer / s kumar

Suppose File Name(MyFile) is overriding to File(MyFile1) in
one Cl program (i.e ClPGM1) by

Ovrdbf File(MyFile) ToFile(MyLib/MyFile1)

Now You are calling the program(i.e RPG1)in Cl Pgm(CLPGM1)
and want to use same file(MyFile1)

So Just Declare the File in F- spec

F MyFile1 IE F Disk
.
.
.
In this way we can use the file

Hope you got your answer!

Thanks!!

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More RPG400 Interview Questions

ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


in which journalling which attributes are necessary

2 Answers   CTS,


i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.

5 Answers   TCS,


what is commitment control?explain about it?

1 Answers   HSBC,


What will happen if we r using seton lr after return or vice versa.

5 Answers  


Hi, can any one tell me :IN CASE OF SINGLE PAGE FILE HOW WILL I LOAD THE PREVIOUS PAGE WITHOUT THE USE OF SFLCLR INDICATOR ?

3 Answers   IBM,


How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


What is the difference between iter and do?

0 Answers  


RPG/400 faqs?

1 Answers   HSBC,


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?

6 Answers   Virtusa,


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


Categories