What will be your approach in going either for OPNQRYF or
Logical files. Which one to go for?
Answer Posted / 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 |
Post New Answer View All Answers
how do I declare a table or array in rpg iv?
what is data area and how it is used in rpg program ?
how can I tell when to replace the array?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
what are the key words you must use when using a subfile?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what is *place and *auto keyword in prtf ?plz explain
Explain mdt?
When it is desirable to describe files Internally?
what is the difference between do while and do until?
what was the robotech rpg?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
what do you mean by an input subfile, what are the keywords required?
What is a record lock error?