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
how does the rpg element work?
what is kids-rpg?
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...........
What is file identifier where we can use?
When it is desirable to describe files Internally?
How to handle duplicate error handling in RPG?
What is ment by record level identifier?
What is the difference between copybooks and subprocedures in as400?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
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...
How to call one program from another program in RPG? please help me with the code
can you debug ile rpg program using isdb?
what is the rpg system?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
what do you mean by an input subfile, what are the keywords required?