The last two records in subfile are same…if i delete that also it is taking last record and showing in display two times..

300 pts.
Tags:
AS/400
AS/400 Subfiles
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

 

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • philpl1jb
    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.
    51,355 pointsBadges:
    report
  • jackli
    Maybe the last input record wrote to subfule twice.The command writesfl is wrote out the read cycle i think.
    95 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following