Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I know chain keyword retreive records randomly but how chain
keyword exactly works internally????

Answers were Sorted based on User's Feedback



I know chain keyword retreive records randomly but how chain keyword exactly works internally????..

Answer / aditya

hello ,
see chain opcode locks the first record of pf and then
starts reading.it is useful when there are multiple
receivers present in your program and you want any specific
receiver.
it is always used with HIGH indicator.

Is This Answer Correct ?    5 Yes 0 No

I know chain keyword retreive records randomly but how chain keyword exactly works internally????..

Answer / 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

I know chain keyword retreive records randomly but how chain keyword exactly works internally????..

Answer / sandy

chain op code firstly set the file pointer to BOF(begin of file).then look for key or rrn which is specified in factor 1.
in rpg400 EX:
 Factor1          opcode        factor2                    Key/rrn           chain       file name/record format name

Is This Answer Correct ?    1 Yes 0 No

I know chain keyword retreive records randomly but how chain keyword exactly works internally????..

Answer / nkumar

With chain High indicator is defined which will be set on if record is not found. Chain works exactly like SETLL and then READ record. If the record is found it will be read and indicator will be OFF and if record is not found then indicator will be ON.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

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.

0 Answers  


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


What is difference between bind by copy and bind by reference?

0 Answers  


Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.

1 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


how does the rpg element work?

0 Answers   IBM,


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


wat is the difference between array and multiple occurence data structure?

4 Answers   Four soft,


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


how do I declare a minor?

0 Answers   IBM,


HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....

1 Answers   HCL, Mind Tree,


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


Categories