Two subfiles in same screen

5 pts.
Tags:
AS/400 Subfiles
RPG ILE
Subfiles
I am working with 2 subfiles in the same screen, both have some options that call others programs. There is a function key F12 - cancel that should be return to the last screen after run these programs. The program is using command UPDATE LSTSFL (subfile name). It is working well for the first subfile but not for the second (Update or delete in file SBRPIQ003U without prior input operation). Somebody could help me please?      URGENT 

Software/Hardware used:
RPG ILE

Answer Wiki

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

As Tom said we don’t know enough

The error (Update or delete in file SBRPIQ003U without prior input operation).
would indicate that your program is attempting to update or delete a record in the subfile SBRPIQ003U but you haven’t acquired the record with a READC or a CHAIN or you’re updating it twice.
Phil

Discuss This Question: 2  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
    The program is using command UPDATE LSTSFL... I have no idea what that means. Which program uses that command? Is it a "command" or is it the RPG UPDATE op-code? What is "LSTSFL"? Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    The program is using command UPDATE LSTSFL (subfile name). It's making a little more sense when I read it today. Is that the statement in the program that causes the I/O error? If so, what was the last READ statement that ran in the program before the error? If LSTSFL is the name of one of the subfiles, is that the same subfile that the READ statement ran against? Is there another UPDATE statement for the other subfile? Tom
    125,585 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