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)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
When it is desirable to describe files Internally?
what is ment by "MDT"
How do you code file / field renames in ILE RPG?
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is the necessary keyword needed to scroll subfile records?
How to search particular records from the database file in rpg?
1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF
Are all these RPG/400 Interviewed Questions being asked recently? are current?