What is significance of a file designated as a Primary file
in Rpg400 program....also what's use of secoundry file
Answer / abhishek bajpai
Primary File is the one which uses the RPG logic cycle. It
is defined in the F spec as:
FABPF1 IP E Disk
Here, ABPF1 is primary file.
For a primary file we cannot use any operations like Read,
Reade, Chain etc. It automatically reads from the 1st to
the last record and executes the program from the 1st to
the last line. A program can have only 1 primary file
defined.
Secondary file is exactly like the primary file in
functioning except that the program starts processing the
secondary file only when the EOF is found for primary file.
A program can have multiple secondary files defined in it.
| Is This Answer Correct ? | 5 Yes | 0 No |
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??
wat is the difference between array and multiple occurence data structure?
Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
How to identify the object has compiled with the debug view as *source without using STRDBG?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
what is the necessary keyword needed to scroll subfile records?
I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?
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,
RPG/400 faqs?
What is the difference between inner join @ outer join
What is the Record Address file. How can we use it in RPG program?