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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

which are the query selection criteria, which can be given in a query?

665


what are different record spacing keywords in rlu ?

1202


what is procedure prototype and procedure interface.

615


How can we update a specific field in RPG?

922


can error messages as a result of a comp, range or values keyword be overridden?

1117






Why we are not able to perform insert delete and update operation in Join logical file?

933


how can a message from a message file appear as a constant on the screen?

925


how do you specify the number of records to roll in a subfile ?

1230


what are necessary keywords to code message subfile?

1006


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

2893


what is message subfile?

1043


how can a cgi check whether an ifs object is available?

635


what keyword must be used with protect keyword ?

1116


Difference Between Ca & Cf?

697


what is the use of sflend keyword?

971