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



Rob,

I can see that that POV...and the points I made can be used to support it.

On the other hand, having lived in a big company sometimes it's easier to
get forgiveness than permission.

Charles

On Tue, Sep 9, 2014 at 12:42 PM, <rob@xxxxxxxxx> wrote:

There is a huge difference between
"need to get permission"
and
"not an option"
If there isn't, then that reflects very badly mostly on the person who has
to ask permission. Smacks of cowardice, or, totally ineffective
communication skills. Don't mean to be harsh although I can see how it
comes off that way.

Alan includes the error handling.

If you download Alan's tool, print off the source, and rekey it by hand,
does that count as installing a third party tool, or applied research?

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Charles Wilt <charles.wilt@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 09/09/2014 12:35 PM
Subject: Re: Converting a numeric date value to a DATE in SQL
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



I fail to see how a customer would be ok with you writing your own version
of iDate (and billing them for it) as opposed to simply loading the
open-source iDate.

For that matter you could simply load the source and compile it yourself
and thus you haven't "installed" anything.

Charles

On Tue, Sep 9, 2014 at 12:13 PM, Jeff Young <jyoung0950@xxxxxxxxx> wrote:

Alan,
Unfortunately, iDate is not an option for this customer (need to get
permission to install *any* 3rd party software -including- utilities)
I have tried to use SELECT DATE(field) from my file (where field is
20140905), but SQL did not like that and it returned ++++++++.
Is there an easy way to do this?



Jeff Young
Sr. Programmer Analyst

On Tue, Sep 9, 2014 at 11:46 AM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Tue, Sep 9, 2014 at 10:38 AM, Jeff Young <jyoung0950@xxxxxxxxx>
wrote:
Using SQL, how do I convert a numeric value of a database field in
ISO
date
format (ccyymmdd) to a DATE data type for comparison?
I need to select all records with a date that is equal to a value
input
by
the user.

I think we all agree that the "right" way to do dates is with date
fields. However, if all you need is to check for equality, probably
the fastest thing to do is to convert your input to numeric ISO and do
a direct comparison with that.

And in your case, even if you had to check for earlier-than,
later-than, or between, you could still use the numeric ISO dates
as-is (this would not be the case for MDY, USA, or EUR numeric-field
dates).

That said, it is probably still worth having iDate. :)

John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.