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
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
what is term cua , saa?
what is the function of cpysplf command?
How can we change the uppercase to Lowercase in RPG?
define the purpose/use for sflrna?
what is sflpag and sflsiz ?
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
when are the referential constraints executed?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
how can you check for a records existence without causing and i/o (chain/read)?
what is full form for dds?
Write a CL program which will run a batch job at 1 am every night
What is file information data structure(infds) in as400?
What is RETURN CURSER LOCATION in subfile?
Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..