|
If you are using iDate, it will return a null if the date is invalid.wrote:
On Tue, Aug 3, 2010 at 2:49 PM, Luis Rodriguez<luisro58@xxxxxxxxx>
checks
Arthur,
COALESCE checks only against a NULL value. You could use an UDF that
itif your date is valid or not.
Regards,
Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries
--
On Tue, Aug 3, 2010 at 4:07 PM, Arthur Marino<amarino@xxxxxxxxxxxx>
wrote:
Hi All,
I've defined a simple cursor that does a date range selection on an
mmddyy date in a file (it's coded to convert it to a true date field
before the test). It ran fine (no halts) but had fewer records than
Ishould have because it aborted on an invalid date it found (023004).
be atried COALESCE to no avail.
How do you tell SQLRPGLE to ignore a selection error? (There has to
Privacyway, right?)
Thanks.
Arthur J. Marino
RockTenn Corporation
(631) 297-2276
This message, including its attachments, constitutes an electronic
communication within the meaning of the Electronic Communications
propertyAct, 18 U.S.C. Section 2510. This message is the confidential
byof
RockTenn, and disclosure is strictly limited to recipients intended
notthe
sender. Unless previously authorized in writing, this message does
messageconstitute an offer, acceptance, or agreement of any kind. This
attorneymay
contain confidential attorney-client privileged information and
forwork product. If you are not the intended recipient, or responsible
use,delivering e-mail to the intended recipient, you are advised that
yourdissemination, forwarding, printing, or copying of this message isSTRICTLY
PROHIBITED. If you receive this message in error, please notify thesender
immediately by return e-mail and delete the message entirely from
transmittedsystem. Sender is not liable for damage caused by viruses
mailingwith
this message, or errors or omissi!
ons in content caused by transmission.
(c) RockTenn, Norcross, GA.
--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing listlist
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.
This is the RPG programming on the IBM i / System i (RPG400-L)
--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.