5 pts.
 Two subfiles in same screen
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
ASKED: September 28, 2010  2:35 PM
UPDATED: September 30, 2010  7:13 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  September 29, 2010  7:43 am  by  philpl1jb   44,220 pts.
All Answer Wiki Contributors:  philpl1jb   44,220 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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

 108,360 pts.

 

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

 108,360 pts.