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 |
this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002
which program rpg or cl is efficent to update a transaction onto a database file and why ?
What is Multi Occurrence Data Structure(MODS)?
what is flat file?
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code
Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
Delete FileName at first statement in RPG.
can i use unique key in LF
how does the rpg element work?