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 do you read data area in an rpg program?

1424


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

768


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2296


what is the use of dspatr(mdt) keyword?

1803


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1335


Write a CL program which will run a batch job at 1 am every night

866


define the purpose of the iter operation?

1371


what is sflrolval?

836


when would you use or not use this approach?

1185


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

1039


What Is The Object Type Of Pf, Lf, Printer File & Display File?

922


What is the maximum number of subfiles that can be specified in a display file?

1539


what key word is used when screen is re-display?

842


can a indexed file be accessed in arrival sequence in rpg program?

1243


can error messages as a result of a comp, range or values keyword be overridden?

1450