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
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?
how can you display specific subfile page on the screen in unequal subfile?
How to select highest score of each subject or how to select highest income of every month?
How Chain operation copies the record's data to the input buffer for the program?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
what is a rpg?
What is the purpose of record level identifier?
how can I tell when to replace the array?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
what is the procedure and explain about real time scenario.
how do you use commitment control in rpg?
How to declare the pull button in AS/400..
what is the use of sflnxtchg?