why we sometimes use same file name in FILE and TOFILE in
OVRDBF and sometimes different??please tell

Answers were Sorted based on User's Feedback



why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

Answer / madhusudhan

I understood your question.
To and From file will be same in the below scenerios for
the OVRDBF command.

1. When you want the different member of the same file.
2. When you want the same file in different Library.

There are more reasons for using OVERDBF other than these
also.

Is This Answer Correct ?    13 Yes 0 No

why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

Answer / mansi walia

In RPGLE if you want to declare the same file in more then
once mode(read/write/update)in this case you can override
the file with different name and declare the same file with
the overriden name.
for example:
In RPGLE if you want to open a file A in two different mode
one is Read and other is Update then you can override the
same file with two different name may be AA and AB and then
declare in your RPGLE program.

Is This Answer Correct ?    7 Yes 1 No

why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

Answer / upendra kachhwaha

There is one more use when you want to handle sharing of ODP created for the database member.

Also you can provide open scope to for better handling in different level(Job or Activation Group).

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

Can be OVRDBF command mentioned after OPNQRYF command in CL?

1 Answers  


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1 Answers   IBM,


why we use binding directory and service pgm

4 Answers   TCS,


What is the difference between keys of a Physical file and the keys of a logical file?

2 Answers   Bank Of America, BoA,


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

0 Answers   IBM,






How to avoid using indicators in ile ?

0 Answers   IBM,


What is the purpose of USROPN keyword?

1 Answers   CTS,


Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?

3 Answers   CTS,


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM Can u plz tell me what the above code do exactly?

2 Answers  


what are the different types of data areas?

1 Answers   IBM,


What are the functions of Remote Job Entry (RJE) ?

1 Answers  


what is a query can be run in which mode?

0 Answers   IBM,


Categories