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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you display specific subfile page on the screen in unequal subfile?

671


What is the difference between copybooks and subprocedures in as400?

801


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.

749


What is the purpose of record level identifier?

722


Explain mdt?

659






what do you mean by an input subfile, what are the keywords required?

764


how do I preserve and clean the array?

667


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1885


what is the use of sflnxtchg?

797


What is file identifier where we can use?

639


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2365


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

728


how can I tell when to replace the array?

692


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

706


How to call one program from another program in RPG? please help me with the code

1250