Which is better LF or OPNQRYF ? When should we use LF and
when should we use OPNQRYF ?

Answers were Sorted based on User's Feedback



Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?..

Answer / vaiv20

It depends on the situation. Whenever any update, delete or
add is performed on file, access data paths to the logicals
are also updated hence if data is very huge in the file it
will take toll on system response time for doing the
update, delete or add operation.Hence take a call based on
this consideration. Also, if you want to create a view on a
physical file for not so frequent use its better to use
OPNQRYF.

Is This Answer Correct ?    14 Yes 0 No

Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?..

Answer / reecha

If the no. of records to be filtered is less then OPNQRYF
is better option then LF becoz it create temporaray ODP
only & overhead on system is less.


if teh records to be filtered out are more ten LF sud be
created

Is This Answer Correct ?    5 Yes 0 No

Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?..

Answer / adarsh

It depends on the frequency of accessing the records from
physical file. If records are huge and frequency of
accessing them is high then go for LF , but if records are
huge or less but Frequency is minimal then go for QPNQRYF
as it does not create a permanent object.

Is This Answer Correct ?    3 Yes 1 No

Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?..

Answer / arun

according to me
lf is used for upd(non joint lf),view,
in this path is permanent it occupies more spaces

openqryf is used for temp path ,
it can access 5 files

so opqryf is better

Is This Answer Correct ?    0 Yes 0 No

Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?..

Answer / m nihar

OPNQRYF is better then LF. Coz , OPNQRYF creates temporary
access path but LF creates permanent objects.
When we use all fields of your file then we use OPNQRYF for
temporaryly use. But when we use some choosen fields from
file then we use LF.

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More IBM AS400 AllOther Interview Questions

Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

0 Answers  


What is LDA?

1 Answers  


I have SQLRPGLE program in which there are some update statements which executed correctly. there were no errors run time. Once the program gets over, the file was not updated with the new values. What might be the reason?

2 Answers  


Define each of the following operation codes a, b, c, d, e

1 Answers  


How to read data from *LDA (Local Data Area) in RPGLE program without using IN opcode?

1 Answers  






how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


How can you check the existence of object in a system?

1 Answers  


When would the ALL keyword be used?

1 Answers  


how can see logical file based on which physical file and vice versa

1 Answers   IBM,


What is file information data structure(infds) in as400?

0 Answers  


Good morning my experts.Im kuppi.im working as a software trainee on AS/400 technology.i have also joined with ibmi5 team.im trying to convert date with cl/400 coding.I have taken 2 parameters(like date and date types). A. If suppose date type is j,Now i want to convert date to *MDY format B. if date type is M,now i want to convert date to *JUL format C. sending a Program message with the value of converted date.

1 Answers  


What are the types of object authorities?

1 Answers  


Categories