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 is file access opcodes?

765


what is the maximum number of files allowed in rpg?

945


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

1107


Can level check error occur if we do chgpf?

780


What is %CHECK?

850






define a shared access path?

1006


What is binder language ?

1367


what is the difference between packed decimal and zoned decimal?

2260


what are all the contents of subfile?

999


an access path may be in which sequence?

638


what are different record spacing keywords in rlu ?

1219


how many printer files can be defined in f specs ?

975


what is elastic and non elastic subrile?

569


How can we update a specific field in RPG?

935


how do you read data area in an rpg program?

1118