How do I read records from Subfile? what is the purpose of
READC explain with example?
Answer Posted / ravi
When you declare SFLNXTCHG in the DDS. You can use READC opcode to find the changed records in the subfile. The MDT will be ON on the changed record. Once you read the record, it changes to off. This is how system identifies the changed records sequentially.
Best example is do WRKMBRPDM, it is nothing but a subfile. You can see all source members in your source file. Correct?
Now, enter display (option 5 i guess?) on say 5 sources and press Enter, control goes to the fisrt source and press enter, control goes to the second source etc.. isn't it?
That is nothing but READC usage.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
can I touch the array during treatments?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what is the difference between do while and do until?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
How can we know running job is batch or interactive?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is the purpose of record level identifier?
When it is desirable to describe files Internally?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
what is a rpg?
what are the key words you must use when using a subfile?
what is file information data structure?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
How Chain operation copies the record's data to the input buffer for the program?
what is the use of sflnxtchg?