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

can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....

1 Answers  


is this a rpg channel?

0 Answers   IBM,


how do u find whether a record is locked or not??

4 Answers   CTS,


What is difference between bind by copy and bind by reference?

0 Answers  






I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)

2 Answers   CTS,


if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.

10 Answers   Four soft,


what are the types of identifers

2 Answers   IBM,


how do I declare a table or array in rpg iv?

0 Answers   IBM,


How Commitment and Roll back control is used in as400, explain with real time senario ???

2 Answers   Acolite, HSBC,


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

0 Answers   IBM,


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


Categories