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

how you get the relative record in a subfile in which cursor is located?

613


how can I start a page in a new window?

783


How can we read file using curser? how to define a curser?

823


how will you display a particular page in subfile ?

1052


which are the relational operators in rpg?

669






How to convert a spool file to PDF file in AS400?

737


what is the function of crtdupobj command?

1151


How do you check object lock

366


what is the function of cpyf command?

1000


what opcode will be used to test the zone of a character field?

1078


what is the favicon.ico request that my site receives now and then?

629


which of the cl command can be used to determine which logical files are dependent on a specific file?

593


records can be read/update/deleted with which file?

634


what are the basic features of seu?

611


distinguish between terminating a program through seton lr and return?

563