300 pts.
 The last two records in subfile are same…if i delete that also it is taking last record and showing in display two times..
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

Answer Wiki:
 
Last Wiki Answer Submitted:  September 10, 2012  1:40 pm  by  philpl1jb   44,110 pts.
All Answer Wiki Contributors:  philpl1jb   44,110 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 107,905 pts.

 

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.

 44,110 pts.

 

Maybe the last input record wrote to subfule twice.The command writesfl is wrote out the read cycle i think.

 95 pts.