Can we use OVRDBF command without using of OPNQRYF ?
Or can we use OPNQRYF command without using of OVRDBF
command ?
Answer Posted / bharat
OVRDBF can be used separately without opnqryf to override
the attributes of file.
Now, OPNQRYF without ovrdbf, is also possible:
opnqryf creates the 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
recoreds in to runtime file and use that file to read in
program.
| Is This Answer Correct ? | 43 Yes | 3 No |
Post New Answer View All Answers
how can a cgi check whether an ifs object is available?
how will you find a string using pdm?
What is the Difference between command attention key and command function key ?
what is the length of a variable in rpg?
how can a message from a message file appear as a constant on the screen?
how does union file maintains record formats?
how you get the relative record in a subfile in which cursor is located?
what are the different commands used in rlu ?
what the purpose of ovrdta, ovrata keywords?
How to reverse the string in rpg
what is the sequence when using cursor?
What is the draw back of Procedures? why we are going to Modules?
How can we arrange duplicate records in a file?
define the purpose of the %sst function?
How to convert a spool file to PDF file in AS400?