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

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.

2 Answers  


wat is the difference between array and multiple occurence data structure?

4 Answers   Four soft,


How can you delete records form a file in rpg without using "Delete" OPCODE?

7 Answers  


Explain mdt?

0 Answers  


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  






What is the difference Return and InLr?

3 Answers  


suppose if we want to update the data in cl what we will do?

9 Answers  


What will happen if we r using seton lr after return or vice versa.

5 Answers  


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,


What is the syntax of passing parameters to a procedure by value?

1 Answers  


One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?

4 Answers  


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


Categories