Re: DBCENTURY and 4GL
Posted in 1997
Jacob Salomon wrote:
>
> Hi family,
>
> I have a question regarding the much-hyped DBCENTURY environment
> variable. I understand that the 7.2 engine uses it to help interpret
> a 2-digit year. This is fine if I have a statement in dbaccess like:
>
> insert into orders(customer, order_date)
> values(12345, "01/15/03")> If DBCENTURY happens to be "C" and today's date is 11/12/1996, the
> above
> date will be interpreted as 01/15/2003. (Assumming, of course, that I
> have correctly interpreted the Guide to SQL - Reference).
Correct, as long as customer_num is spelt correctly, and customer 12345
exists in the customer table. ;-)
> However, no application I know uses dbaccess directly. It is the 4GL
> app that gets the date in from a form. When the INPUT statement is
> executed, the string "01/15/03" the user typed in the date field is
> already stored in binary (days since 12/31/1899). I am certain that
> the
> INPUT statement will have interpreted the "01/15/03" as the year 1903,
> not 2003, since (as far as I know) 4GL knows nothing about DBCENTURY.
Correct.... for now.
> Is this indeed the state of affairs with 4GL? This is highly
> relevant,
> because we are getting close to the situation where people will be
> entering due dates past 12/31/1999.
It is until version 4.20 (6.10) which will, alegedly, support DBCENTURY.
Hope that helps,
--
Mark.
+----------------------------------------------------------+-----------+
|Mark D. Stock - Informix SA http://www.informix.com |//////// /|
|mailto:mdstock@informix.com FAQ http://www.iiug.org |///// / //|
| +-----------------------------------+//// / ///|
| Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////|
| Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////|
|Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////|
+----------------------+-----------------------------------+-----------+