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

Answer Posted / abhishek

The first method is not very full proof. Actually it is not
necessary that RRN is always sequential.

Suppose initally there are 100 records in a file and so
does the RRN starts from 1 for first record and 100 for
last record.

If 1 record is deleted from the file RRN remains unchaned
and in that case adding 2 may cause a problem if system
does not get Record at that RRN it will read the next
sequential.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does the rpg element work?

717


what is kids-rpg?

668


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


What is file identifier where we can use?

652


When it is desirable to describe files Internally?

1189






How to handle duplicate error handling in RPG?

1681


What is ment by record level identifier?

655


What is the difference between copybooks and subprocedures in as400?

810


which program rpg or cl is efficent to update a transaction onto a database file and why ?

747


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

1313


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

1260


can you debug ile rpg program using isdb?

739


what is the rpg system?

668


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1020


what do you mean by an input subfile, what are the keywords required?

774