Which is better LF or OPNQRYF ? When should we use LF and
when should we use OPNQRYF ?
Answer Posted / 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 |
Post New Answer View All Answers
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
define the rcvf command?
what does the opcode free do?
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
how can you detect overflow for a print program that prints multiple lines per cycle?
how can I automatically refresh a web page?
when would you use or not use this approach?
what is the version of os/400 that we have?
define what a data area is along with a brief example of what it may be used for?
how will you display a particular page in subfile ?
what is the maximum number of fields under a record format of physical file?
1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?
how to toggle between single line and multi - line display of a particular record in a subfile?
How to reverse the string in rpg
difference between view and index ?