IBM AS400 Question:
Download Questions PDF

Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different?

Answer:

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.

Download IBM AS400 Interview Questions And Answers PDF

Previous QuestionNext Question
What are the commands that can be executed in CLP but not in RPG? Why?In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening?