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 |
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
in which journalling which attributes are necessary??/
what is file identifier wher we can use
is this a rpg channel?
what is program status data structure?
What is the difference between iter and do?
i would like to know under what circumstance the object will get locked on AS400.
1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
can you debug ile rpg program using isdb?
How can you delete a record from a file in RPG without using DELETE oppcode?