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 was the robotech rpg?
How Chain operation copies the record's data to the input buffer for the program?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
What is ment by record level identifier?
what is the procedure and explain about real time scenario.
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
How to write record if no field or the field are different in physical file in rpgle ?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
what is the rpg system?
How to call one program from another program in RPG? please help me with the code
what is the use of sflnxtchg?
what is an online rpg?
how do I declare a table or array in rpg iv?
How would display prime numbers using CL program?