What is SFLNXTCHG keyword why it has used and where?
Briefly explain with Example.
Answer Posted / tprabhakarreddy
Before having the answer for SFLNXTCHG, understand about
the MDT tag.
Modified Data Tag:
1. It is 1 bit of the attribute charecter and Every subfile
record will have a MDT tag and it will seton when the
record is changed.
2. Readc will record all subfile records whcih have MDT = 1
and once Readc is performed on changed record MDT will made
off.
3. Hence When you performed READC for the second time on
the same record, which has changed before but not changed
second time, will not work.
SFLNXTCHG keuword:
For reading the subfile reading in second time, which has
changed before but not changed second time, we have to
force the MDT flag set to 1. This can be done using
SFLNXTCHG keyword.
| Is This Answer Correct ? | 31 Yes | 3 No |
Post New Answer View All Answers
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
what is the use of sflnxtchg?
How to write record if no field or the field are different in physical file in rpgle ?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
is this a rpg channel?
How can we override a file during runtime in rpg?
How to call one program from another program in RPG? please help me with the code
how do you use commitment control in rpg?
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 *place and *auto keyword in prtf ?plz explain
what is an online rpg?
What is the difference between iter and do?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
what is program status data structure?
are there any useful c runtime apis that I can call from rpg iv?