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

How to read alternative records in a pf by using rpg?

Answer Posted / krishna

sample code for alternative record in a pf
fsamplepfif e disk
/free
dow not %eof(samplepf);
read samplepf;
If %eof(samplepf);
Leave;
endif;
---------;(doing some actions based on the conditions)
read samplepf;
enddo;
*inlr = *on;
/end-free

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

945


When it is desirable to describe files Internally?

1714


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

1144


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

1155


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

1309


How many program bind in one module....

2684


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

2333


what is an online rpg?

1266


How Chain operation copies the record's data to the input buffer for the program?

1606


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

1193


How would display prime numbers using CL program?

6325


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

1186


How can we know running job is batch or interactive?

1124


how do you use commitment control in rpg?

1280


how do I play {insert rpg system here}?

1034