Re: _Rwrite and _RIOFB_T->dup_key
Chris Hird <chrish-lbwoW8fqX/[email protected]> Fri, 13 Dec 2024 13:43:46 +0000
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <YQBPR01MB10657867D4759D24E75A24909BF382@YQBPR01MB10657.CANPRD01.PROD.OUTLOOK.COM> |
Alex Check errno if bytes written == 0. It will give you the reason. That way a successful write will not check for an error. Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: Alexei Baranov <alexei.baranov-yC4SI/6e/[email protected]> Sent: Friday, December 13, 2024 8:38:09 AM To: Chris Hird <chrish-lbwoW8fqX/[email protected]>; Bare Metal Programming IBM i (AS/400 and iSeries) <[email protected]> Subject: Re: [C400-L] _Rwrite and _RIOFB_T->dup_key Chris, bytes_written==0 points to a symptom - unable to write record to file, but I need to know the cause. exception_handler for _C2_MH_NOTIFY CPF5034 explain the reason - duplicate key. Thank you for point to CHGMSG to remove message from the job log -------- Original Message -------- Subject : [C400-L] _Rwrite and _RIOFB_T->dup_key From : Chris Hird chrish-lbwoW8fqX/[email protected] To : "Bare Metal Programming IBM i (AS/400 and iSeries)" <[email protected]> Cc : Date : Friday, December 13, 2024 16:30 Just check fp->bytes_written against what you expected to be written. Then use the CHGMSG API to remove from the job log? Chris Get Outlook for iOS<https://aka.ms/o0ukef> -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/c400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/c400-l.