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
how to declare a constant variable in the freeformat?
can you have multiple key lists for a single file ?
How do I remove a flag or check no. or name when a user opens too many sessions?
describe the difference between the dowxx and douxx operations?
What are the record format field mapping options in cpyf?
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..
how many types of display are available on as/400 for user interaction?
how many files, printer files you can describe in a rpg?
what is the difference between normal upddta to pf and updating using dfu program?
which of the following operations does not zero the field flda defined as 4,0?
how you will know whether you are in sfldrop or sflfold mode?
How can we change the uppercase to Lowercase in RPG?
In RPG How to read a records from a file without using read opcodes?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?