What is significance of a file designated as a Primary file
in Rpg400 program....also what's use of secoundry file
Answer Posted / 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 |
Post New Answer View All Answers
what is the necessary keyword needed to scroll subfile records?
how do I preserve and clean the array?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
how can I tell when to replace the array?
what is a rpg?
What is the difference between iter and do?
How Chain operation copies the record's data to the input buffer for the program?
What is the difference between copybooks and subprocedures in as400?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
how do I play {insert rpg system here}?
how do you use commitment control in rpg?
what is the rpg system?