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 are the uses of factor1, factor2 and result field for the rpg operation code parm?

588


which are the relational operators in rpg?

677


what is xfoot opcode ?

1059


What is the use of jdftval in as400?

916


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1002






how can a message from a message file appear as a constant on the screen?

945


What is compiler directive in as400? Give example of compiler directive.?

578


In RPG How to read a records from a file without using read opcodes?

970


what is the purpose of data structure?

1012


explain the purpose of keep and assume keywords?

1066


when is a tag statement used in rpg?

1370


how can I predict the performance of my cgis?

651


what is maximum number of arrays allowed in rpg?

1189


how you will find an error which is not in the first page of the subfile without using rolldown key?

564


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

715