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
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 |
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 |
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.
wat is the difference between array and multiple occurence data structure?
How can you delete records form a file in rpg without using "Delete" OPCODE?
Explain mdt?
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.....?
What is the difference Return and InLr?
suppose if we want to update the data in cl what we will do?
What will happen if we r using seton lr after return or vice versa.
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)
What is the syntax of passing parameters to a procedure by value?
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...?
How to read alternative records in a pf by using rpg?