Can we use OVRDBF command without using of OPNQRYF ?
Or can we use OPNQRYF command without using of OVRDBF
command ?

Answer Posted / vaiv20

Yes it can be used when u want system to point to a
particular File/Member in a library while processing a file
in a high level pgm. Example, suppose u want to use a work
file in QTEMP , although other object of the same file
exist in the current library list. other way to achieve
this is by using Keyword EXTFILE and EXTMBR on the F spec
of that file in RPGLE pgm.
I think OPNQRYF can be used without OVRDBF but that
physical file should have been defined/changed with SHARE
(*YES). This will create a data path for the file to be
shared.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does dfu program you to do on a record?

840


How do I remove a flag or check no. or name when a user opens too many sessions?

1867


give three main purposes of file specification ?

1151


how can I control the way a remote browser uses its cache?

695


define what a data queue is along with a brief example of what it may be used for?

1230






How to Define a Procedure in RPG?

1298


what do we can do with the embedded sql statements?

671


What is difference between rename and prefix?

661


what are the three line types in rlu ?

1660


what is the function of cpysplf command?

1142


define the purpose of the %sst function?

1098


what does opcode post do ?

1243


where can you specify an indicator in lokup operation?

1313


what does vldcmdkey means?

933


why do we use readc? What is sflnxtchg?

768