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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is *place and *auto keyword in prtf ?plz explain
what is the use of sflnxtchg?
what is a rpg?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
What is the difference between copybooks and subprocedures in as400?
what is data area and how it is used in rpg program ?
what is the difference between do while and do until?
how do I declare a minor?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
Explain mdt?
can you debug ile rpg program using isdb?
How Chain operation copies the record's data to the input buffer for the program?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
can I touch the array during treatments?
What is file identifier where we can use?