What will be your approach in going either for OPNQRYF or
Logical files. Which one to go for?




Answers were Sorted based on User's Feedback



What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?..

Answer / sulthan

OPNQRYF dynamically creates the records required according
to the parameterrs and this process could be slow. While
using logic files , we already have the a record fectching
path and it is faster. so if a program needs to be run
multiple times, use LF's and if once in a while, go for opnqryf.

Is This Answer Correct ?    8 Yes 0 No

What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?..

Answer / kcsyam

Logical Files

Is This Answer Correct ?    3 Yes 3 No

Post New Answer




More RPG400 Interview Questions

What is ment by record level identifier?

0 Answers  


Need a sql query: retrieve all duplicate records in table?

0 Answers  


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


How to index LF by relative record no (RRN)

1 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,






How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.

4 Answers   IBM,


Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


what is the necessary command needed before OPNQRYF and why?

5 Answers  


I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  






Categories