Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

2311


how do I declare a table or array in rpg iv?

1174


What is difference between bind by copy and bind by reference?

2470


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2797


what is the difference between do while and do until?

1240


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.

2625


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

1303


What is a record lock error?

1759


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?

5131


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

2323


How to select highest score of each subject or how to select highest income of every month?

1759


What are the types of identifiers?

1016


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1346


how can I tell when to replace the array?

1206


how do I play {insert rpg system here}?

1032