I know chain keyword retreive records randomly but how chain
keyword exactly works internally????
Answer Posted / drew
CHAIN:
positions current record to correct record based on key
sets HI indicator *ON if position fails and sets %found()
off in free-form code
reads the record fields into the automatic internal buffer
fields
locks the record, if in update mode and "no lock" has not
been added to the command ( chain(n))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is kids-rpg?
what are the key words you must use when using a subfile?
how does the rpg element work?
When it is desirable to describe files Internally?
How Chain operation copies the record's data to the input buffer for the program?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
what is the difference between do while and do until?
How can we override a file during runtime in rpg?
what was the robotech rpg?
what is the necessary keyword needed to scroll subfile records?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How can we know running job is batch or interactive?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
What is ment by record level identifier?
how do you use commitment control in rpg?