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

how do you use commitment control in rpg?

0 Answers   IBM,


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


What is a record lock error?

0 Answers   Wipro,


1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


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,






while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?

3 Answers  


Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

7 Answers   HSBC, Systime,


how does the rpg element work?

0 Answers   IBM,


what is ment by "MDT"

2 Answers   TCS,


Categories