× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Subfile Read without Update error.
  • From: "Joe Teff" <jteff19@xxxxxxx>
  • Date: Fri, 30 Apr 1999 15:10:47 -0500

>I have a display files with 2 subfile records  and one (non-subfile) record
>format. Following is the logic coded:
>
>(1) I am READing SubfileA for a later update.
>(2) Displaying RecordFormatR.
>(3) Then on some input criteria in RecordFormatR, displaying SubfileB. Here
I am
>READC/CHAIN the SubfileB upon pressing a Function key.
>(4) After this, I return back to RecordFormatR.
>(5) Then on RecordFormatR I press F3/F12 to come back to SubfileA.
>(6) Then I UPADATe SubfileA.
>
>But it happens that after step (5) I get an error '.....issued update or
delete
>in ATA010D without prior READ or CHAIN....'
>
>And when I 'm not doing READC/CHAIN in step (3) , I don't have this error.
>
>Can you tell where is the problem?
>
>Thanks a lot.
>Rajeev.

I have had proplems in the past when I READC to a SFL,
write/read/exfmt other formats to the same DSPF and then
try to update the SFL record I had read before. I have always
been able to modify my code do the update immediately
following the READC and before I do the other write/read/exfmt
to the DSPF and this has solved my problem. I could always
re-CHAIN to the SFL using the relative record number prior
to the UPDATE, I just haven't done it that way yet.

Joe Teff


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.