I know chain keyword retreive records randomly but how chain
keyword exactly works internally????
Answer Posted / 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 |
Post New Answer View All Answers
are there any useful c runtime apis that I can call from rpg iv?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
what are the key words you must use when using a subfile?
how do I declare a minor?
How to write record if no field or the field are different in physical file in rpgle ?
What is difference between bind by copy and bind by reference?
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?
what is the difference between do while and do until?
What is a record lock error?
what is the necessary keyword needed to scroll subfile records?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
what is program status data structure?
what is an online rpg?
What are the types of identifiers?