The last two records in subfile are same..
if i delete that also it is taking last record and showing in display two times..
111111 MOHAN 1970-01-01 M MOHAN@RTC STVD
222222 GOWTHAMI 1971-01-01 F GOWTHAMI@H STVD
333333 PSURYA2 1991-01-01 M SURYA@WIPO PUNE
444444 ANITHA 1991-01-01 F ANITHA@H PUNE
555555 NANI 1993-01-01 F NANI@DEGRE STVD
555555 NANI 1993-01-01 F NANI@DEGRE STVD
Software/Hardware used:
ASKED:
September 10, 2012 7:38 AM
UPDATED:
September 10, 2012 11:56 AM
And what is the problem?
We don’t know what any database contains that you might load the subfile from, so we don’t know if anything you said is expected or not. We don’t have a copy of your program, so we don’t know if the logic is correct.
Most likely, you have your logic coded so that the last record is loaded into the subfile twice. So fix it. We can’t tell you how because you didn’t show it to us.
Run it under debug and see what happens. That all we can say as long as we don’t know what you have.
Tom
Either you have the same record in your input file twice or you have a program error. If 555555 NANI 1993-01-01 F NANI@DEGRE STVD is the last record in your physical file, I would start by looking at how you are handling EOF from the input file.
Maybe the last input record wrote to subfule twice.The command writesfl is wrote out the read cycle i think.