|
I put a Monitor in my code to specifically catch this error, but it
doesn't seem to work. Here is the code. Note the TruncNbr(*no) that I
put in the H-spec to make sure that was working (but I think that is the
default, right?)
I didn't see anything in the archives.
H OPTION (*NoDebugIO : *SrcStmt) TruncNbr(*no)
.
.
D MinutesLate S 5p 0
.
.
monitor;
MinutesLate = %diff(%timestamp : LateTS : *minutes);
on-error;
MinutesLate = 99999;
endMON;
Yesterday I added a check specifically for the RNQ0103 in hopes that it
would catch the error, but I don't think I should have to do that. I
don't know if that fixed it, but I haven't gotten any complaints about
getting the error since then!
monitor;
MinutesLate = %diff(%timestamp : LateTS : *minutes);
on-error 0103; // Target too small to hold result
MinutesLate = 99999;
on-error;
MinutesLate = 99999;
endMON;
Mr. Kerry Lockwood
Celadon Trucking, Inc.
9503 E. 33rd Street
Indianapolis, IN 46235
(317) 972-7000 ext. 2147
NOT JUST A TRUCKING COMPANY! Celadon offers a wide array of logistics
solutions, including Warehousing, Brokerage, and LTL Consolidation. To
learn more, call (800) CELADON ext. 7048.
STATEMENT OF CONFIDENTIALITY: The information in this message is
privileged and confidential and is intended only for the use of the
individual or entity named above. If the reader of this message is not the
intended recipient you are hereby notified that you are prohibited from
disseminating distributing or copying the information contained in this
message. If you have received this message in error please notify the
sender immediately and destroy all copies of the original message.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.