RPG/400 number of Records present in a physical file using
file information data structure
FPF001 IP E DISK
F KINFDS INFDS1
IINFDS1 DS
I *RECORD RECORD
Is this coding correct sir,i have given I P E that is I-
input,P-primary file,E-externally described.
Primary to use RPG logic cycle,is this the correct method
because we have to find number of records present using file
information data structure in RPG/400 without doing any
input/output operations on the file and also without using
DSPFD,SQL.
If the above coding is correct means,when i compile the
program it gets compiled,but if i call the program it does
not return anything,i need number of records,please complete
the coding sir.
Answer Posted / prince
FAAPPOLM IP E K DISK INFDS
(FILE)
DFILE
DS
DREC 156 159I
0
C DSPLY
REC
C EVAL *INLR = *ON
I have declared file information data structure in position
156 to 159 it will hold the number of records in the
file.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
how do I play {insert rpg system here}?
is this a rpg channel?
What is file identifier where we can use?
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...
what are the key words you must use when using a subfile?
How many program bind in one module....
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
what is data area and how it is used in rpg program ?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how do I declare a minor?
what is a rpg?
How can we override a file during runtime in rpg?
What is a record lock error?
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?