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


Please Help Members By Posting Answers For Below Questions

When it is desirable to describe files Internally?

1178


what is program status data structure?

1362


how do I preserve and clean the array?

665


can you debug ile rpg program using isdb?

730


what are the key words you must use when using a subfile?

680






thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1879


are there any useful c runtime apis that I can call from rpg iv?

686


what is an online rpg?

711


what is *place and *auto keyword in prtf ?plz explain

2710


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.

2181


What is the difference between iter and do?

660


how do I declare a minor?

706


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1440


What is ment by record level identifier?

644


what is the rpg system?

660