My manager likes to quiz us to see how much we are trying to grasp this language. He asked me a question recently:
"You do not specify SFLNXTCHG and it's indicator in the subfile. On compiling the display file and the program, you make a change on the subfile and the program reads the change through readc. You make a change again but this time the program doesn't pick up the change. Why?"
I replied by saying it's because we didn't define SFLNXTCHG in the subfile and didn't turn it on after the program executes readc the first time.
So he then asked why do we need to specify and turn SFLNXTCHG on? Shouldn't readc read the changed record the second time if it's job is to read the changed records?
I couldn't find the answer yet. Any help would be really appreciated.
"You do not specify SFLNXTCHG and it's indicator in the subfile. On compiling the display file and the program, you make a change on the subfile and the program reads the change through readc. You make a change again but this time the program doesn't pick up the change. Why?"
I replied by saying it's because we didn't define SFLNXTCHG in the subfile and didn't turn it on after the program executes readc the first time.
So he then asked why do we need to specify and turn SFLNXTCHG on? Shouldn't readc read the changed record the second time if it's job is to read the changed records?
I couldn't find the answer yet. Any help would be really appreciated.
Comment