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


Please Help Members By Posting Answers For Below Questions

1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


what is the use of sflnxtchg?

803


What is the purpose of record level identifier?

728


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3286


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2199






do you use message subfiles? What are the necessary keywords required coding a message subfile?

687


what was the robotech rpg?

684


What is the difference between iter and do?

676


How many program bind in one module....

2121


how can you display specific subfile page on the screen in unequal subfile?

675


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1895


How to write record if no field or the field are different in physical file in rpgle ?

490


How to declare the pull button in AS/400..

1882


What is a record lock error?

1267


How to call one program from another program in RPG? please help me with the code

1260