I know chain keyword retreive records randomly but how chain
keyword exactly works internally????
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
what is the necessary keyword needed to scroll subfile records?
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
How do you do indexing in a physical file?
Can someone tell me tell me what is meant by message wait...?
can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?
1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
what r drawbacks of OPM? Why do we go for ILE RPG?
How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...
wat is meant by hidden field , why it is used?
there is any limit to display the members in rpg400?