can any one pls tell me some differences between a LF and
command OPNQRYF?
Answers were Sorted based on User's Feedback
Answer / vaiv20
LF creates a new object in the system while that is not the
case for OPNQRYF.
LF creates a permanent data access path to the physical
file that will be updated as and when and add,update and
delete operation is performed on file Whereas OPNQRYF
creates a temporary access data path that is shared by high
level pgm for further processing of recs in file.
| Is This Answer Correct ? | 30 Yes | 0 No |
Answer / senthilkumaran
The main difference is : Logical file creates permanent
object on the system. OPNQRYF creates temporary access
path.
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / amit
I agree with Vaiv20. Just want to add that OPNQRYF is used
with keyword Share(*Yes) and that's what makes the ODP
avaiable to high level pgms.
Also the usage of OPNQRYF is for adhoc jobs that are
executed once in a while whereas LF is used in case where
the ODP is going to be used pretty regularly. So LF object
would be prefered when the usage is going to be regular
where as OPNQRYF would be good where the job is going to be
once in a while.
LF would make the job faster compared to OPNQRYF though ti
depends on what kind of maintenance option you use for LF.
| Is This Answer Correct ? | 9 Yes | 0 No |
What is the interactive job?
How to retrieve a physical file after deleting that ? what is keyword used for that....??
How to index LF by relative record no (RRN)
can any one pls tell me some differences between a LF and command OPNQRYF?
3 Answers Accenture, Cognizant, eFunds,
how to restrict upon adding the data for field reference file in DB400
hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that
How many maximum record format a logical file have?
Why journalling is compulsory before commitment control?
What is the difference between access path and open data path?
how to add a new field to a file without compiling it?
what is use of self join and which cases you will use this join
what is the intractive job? what is the batch job ? how to change the batch job to interactive job?