what is use of sflnxtchg and use of MDT(modify data
tag).both r same r not and can we use these on dspf and subfile.

Answers were Sorted based on User's Feedback



what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on ..

Answer / ram

SFlNXTCHG is a subfile record format keyword.

If the SFLNXTCHG indicator is turned on and the subfile
record is written or updated the change flag will be forced
on so in the subsequent processing the READC will get that
record.

One use for this is so that the records can be edited for
errors and if no errors are found then they can be
processed. As the readc loop edits for errors it updates
each subfile record with the SFLNXTCHG indicator on and
that allow the update loop to use the READC to get the
records again.

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.

Both are not same.

We Can use in Subfile.

Is This Answer Correct ?    23 Yes 0 No

what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on ..

Answer / reecha

1. when a read is performed on subfile , the MDT is turn
off .
2. So if again a read is done on subfile , it cannot sense
the change done on the subfile .

3.in order to sense the changed record use SFLNXTCHG
keyword by setting on the keyword & do an update in subfile

4. so now if agin u perform a read , the changed record
will be sensed.

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More RPG400 Interview Questions

how to change the length of the field in a physicalfile?

12 Answers  


what is commitment control?explain about it?

1 Answers   HSBC,


What are the commands that can be executed in CLP but not in RPG? Why?

1 Answers   CSC,


Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?

2 Answers   Cap Gemini,


I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.

2 Answers  






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

4 Answers   IBM,


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


can I touch the array during treatments?

0 Answers   IBM,


Categories