what is the main use of OPNQRYF ?? in that query why we can
use OVERDBF and in that OVERDBY why should we use SHARE(*YES)
Answer Posted / kapil kumar
It is not mandatory to use OVRDBF(*Yes) before OPNQRYF. You
can still use OPNQRYF without OVRDBF.
But here the pupose of the OPNQRYF won't be solved. Opnqryf
creates its own Open data path and to share the same data
path in a program we use ovrdbf share(*yes), if we do not
use ovrdbf, then program will have its own ODP, so it will
read the file from begining on which query has been run. So,
OPNQRYF selected records will have no importance. So, we
need to use CPYFRMQRYF command and put the selected records
in to runtime file and use that file to read in program
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
A join logical file has how many record formats?
what is a primary file?
how do you use exceptional write in c specs?
difference between view and index ?
what is logical file?
what are the different commands used in rlu ?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
define a output queue?
What is the draw back of Procedures? why we are going to Modules?
what are the various types of device files?
what is a join logical file?
can you have multiple key lists for a single file ?
using dfu, user will be able to ___________ from physical file?
which are the member types which seu supports?
what is the favicon.ico request that my site receives now and then?