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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different opcodes used for file operation on a subfile in a rpg pgm?

1458


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1557


Space & Skip Are Which Level Keywords?

980


list some of the commonly used commands for debugging?

1242


what is a primary file?

1399


can a single screen format occupy a screen area above and below a subfile format ?

1342


what is the use of sflend keyword?

1407


what are the basic features of seu?

827


what keyword must be used with protect keyword ?

1469


what is the purpose of indicators in rpg?

1445


what is the purpose of overrides?

1417


in conjunction with what other keyword must ovrdta and ovrata be used?

1229


what is the sequence when using cursor?

870


how do you specify page overflow indicator for printer files in rpg?

1938


what is the maximum number of parameters allowed in rpg?

1411