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

1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF

5 Answers   CTS,


Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


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

7 Answers   HSBC, Systime,


1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??

2 Answers  


What is the difference Return and InLr?

3 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


What is ment by record level identifier?

0 Answers  


What is file identifier where we can use?

0 Answers  


what is data area and how it is used in rpg program ?

0 Answers   IBM,


Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


Categories