Answer Posted / sairam
Using Chain we can set the pointer to the particular record
according the criteria specified in the chain operation. But
in this case, if the record is found then the pointer will
be set, otherwise i.e., if the record does not exist then
the pointer will not set. This is the reason why we check
with the %Found keyword. And moreover after reading the
record (in case if the record found and there are more
number of records with the same keyword), we can not move
to the another record, which meets the same criteria
specified in the Chain operation. So the conclusion is we
can not read more number of records with the Chain
operation, if there are more number of records exist with
the same criteria in the file.
Where as using READE, we can read all the records which meet
the same criteria using subsequent READE operation. If there
are no records with the specified criteria then the pointer
will be set to EOF.
| Is This Answer Correct ? | 70 Yes | 5 No |
Post New Answer View All Answers
What is difference between bind by copy and bind by reference?
What is a record lock error?
how can you display specific subfile page on the screen in unequal subfile?
how do I play {insert rpg system here}?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How to select highest score of each subject or how to select highest income of every month?
What is ment by record level identifier?
how do I declare a minor?
what is kids-rpg?
How can we override a file during runtime in rpg?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is the difference between copybooks and subprocedures in as400?
how do I preserve and clean the array?
what is an online rpg?
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...