What is SFLNXTCHG keyword why it has used and where?
Briefly explain with Example.

Answers were Sorted based on User's Feedback



What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example...

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

What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example...

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

Post New Answer

More RPG400 Interview Questions

what is kids-rpg?

0 Answers   IBM,


How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?

4 Answers   IBM,


what is file information data structure?

1 Answers   IBM,


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


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,


what are the array operations?

1 Answers   IBM,


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


wat is curser?? and its types???

4 Answers   HSBC,


Categories