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.



RPG/400 number of Records present in a physical file using file information data structure FPF00..

Answer / 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

More RPG400 Interview Questions

Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


what are the key words you must use when using a subfile?

0 Answers   IBM,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,






How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.

4 Answers   IBM,


Explain mdt?

0 Answers  


Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?

6 Answers   CSC,


I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.

3 Answers  


Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?

3 Answers  


list down and describe the sub systems vailable

5 Answers   IBM,


how do I declare a minor?

0 Answers   IBM,


Categories