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

how do I play {insert rpg system here}?

981


is this a rpg channel?

1121


What is file identifier where we can use?

1077


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...

1822


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

1100


How many program bind in one module....

2608


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

1096


what is data area and how it is used in rpg program ?

1265


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1951


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1126


how do I declare a minor?

1110


what is a rpg?

1135


How can we override a file during runtime in rpg?

1141


What is a record lock error?

1700


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?

5063