× 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.



This is not one of files we have with triggers. This is the boss's code and
neither he nor I saw that there is no exit from the DO loop if there is a
valid write. He added a LEAVE command and all is good.

Jim

On Feb 3, 2010 7:14 AM, <rob@xxxxxxxxx> wrote:

Well, the chances are slim to none that this is the issue but is there a
possibility that you have a trigger program that also writes the record to
another file with a dup key?


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Jim Essinger <dilbernator@xxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Date: 02/02/2010 06:48 PM
Subject: Re: Code is writing to file even when a duplicate record
error is returned
Sent by: rpg400-l-bounces@xxxxxxxxxxxx




Alan,

V5R4. We just can't figure why the system is throwing a duplicate key
error, especially w...
--

This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.