What is SFLNXTCHG keyword why it has used and where?
Briefly explain with Example.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / syam
The purpose of SFLNXTCHG =
Which is a subfile record format keyword. If you perform
read on the subfile, the internal indicator
MDT (modified data tag) is automatically set off by the
system. If you again perform read on the
same records, records won't be read. Because internal
indicator MDT would be off. Hence you should be
explicitly set on the MDT by SFLNXTCHG keyword.
| Is This Answer Correct ? | 9 Yes | 1 No |
suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .
Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC
what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?
how do you use commitment control in rpg?
i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.
can i use UPDDTA command in rpg program in which contains a file
Need a sql query: retrive all duplicate records in table
I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
what is the necessary command needed before OPNQRYF and why?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
when will come session device error?