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

Write a CL program which will run a batch job at 1 am every night

680


can a join logical file be updated?

600


In RPG How to read a records from a file without using read opcodes?

976


i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.

1043


when would you prefer logical file than opnqryf?

1388






Write a logic program for knowing the repeated number of a vowels in a given program?

3318


explain the use of dftwrt display keyword?

1149


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1110


when are the referential constraints executed?

640


maximum number of subfiles that can defined in a rpg program for one display file is?

1046


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?

2097


which type of object is used in db2/400?

655


what does dfu program you to do on a record?

743


what is the difference between normal upddta to pf and updating using dfu program?

777


how to develop some simple graphs (bar charts) using just html?

679