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 will happen if we r using seton lr after return or vice versa.
can I touch the array during treatments?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
How to index LF by relative record no (RRN)
why subproc not run in dftactgrp?????/plz explain
Need a sql query: retrive all duplicate records in table
Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?
Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.
what is the rpg system?
WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?