What is SFLNXTCHG keyword why it has used and where?
Briefly explain with Example.
Answer Posted / tprabhakarreddy
Before having the answer for SFLNXTCHG, understand about
the MDT tag.
Modified Data Tag:
1. It is 1 bit of the attribute charecter and Every subfile
record will have a MDT tag and it will seton when the
record is changed.
2. Readc will record all subfile records whcih have MDT = 1
and once Readc is performed on changed record MDT will made
off.
3. Hence When you performed READC for the second time on
the same record, which has changed before but not changed
second time, will not work.
SFLNXTCHG keuword:
For reading the subfile reading in second time, which has
changed before but not changed second time, we have to
force the MDT flag set to 1. This can be done using
SFLNXTCHG keyword.
Is This Answer Correct ? | 31 Yes | 3 No |
Post New Answer View All Answers
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
How can we know running job is batch or interactive?
how do I declare a table or array in rpg iv?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
What is difference between bind by copy and bind by reference?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
how do I declare a minor?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
how can you display specific subfile page on the screen in unequal subfile?
can you debug ile rpg program using isdb?
what is data area and how it is used in rpg program ?