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


  • Subject: Re: Y2.1K Compliance
  • From: "Peter Dow" <pcdow@xxxxxxxxxxxxxxx>
  • Date: Thu, 30 Nov 2000 16:16:24 -0800

Hi Bruce,

No problem except the limitation on entering 4-digit year dates in a command
parameter, at least according to the help text:

"When entering the command, the year may be specified with either 2 digits
or 4 digits.  If a 2-digit year is specified, the date is assumed to be in
the range of January 1, 1940 through December 31, 2039.

If a 4-digit year is specified, the date may be in the range of August 24,
1928 through May 9, 2071.

When it is passed to the command processing program, it is always passed in
the format Cyymmdd, where C = century, yy = year, mm = month, and dd = day.
The century digit is set to 0 (zero) for years 19xx, and it is set to 1
(one) for years 20xx."

So if an application depends on a command for entering a date for any
reason, they will be limited to 08/24/1928 - 05/09/2071 instead of
01/01/0001 - 12/31/9999.

Regards,
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax


----- Original Message -----
From: <bvining@vnet.ibm.com>
To: <RPG400-L@midrange.com>
Sent: Thursday, November 30, 2000 11:33 AM
Subject: Y2.1K Compliance


> May 1, 1925 would be represented as 0250501 in CYYMMDD format.  The C
> value of 0 does cover all of 1900 to 1999, 1 2000 to 2099, etc.
>
> What's confusing you, I suspect, is that the combination of QCENTURY,
> QYEAR, QMONTH, and QDAY represent what the current date of the system
> is and the system (current release and all that) only supports an IPL
> date ranging from August 24 1928 to July 6 2053.  This limit on the
> range of QDATE does not mean that CYYMMDD formats have the same limit.
>
> I want to stress that this does not mean that application dates cannot go
> beyond 2053.  Using 4-digit date formats applications can support dates
from
> year 0001 to year 9999 with no problem.
>
>
> Bruce
>
> >
> >Hi Dan,
> >
> >I don't know the answer to your question, unless it's "You don't."
> >
> >I found those dates in the help for the QCENTURY system value.
> >
> >Regards,
> >Peter Dow
> >Dow Software Services, Inc.
> >909 425-0194 voice
> >909 425-0196 fax
> >
> >----- Original Message -----
> >From: <D.BALE@handleman.com>
> >To: <RPG400-L@midrange.com>
> >Sent: Thursday, November 30, 2000 6:14 AM
> >Subject: Re: Y2.1K Compliance
> >
> >
> >> >it currently depends on the setting of the QCENTURY system
> >> >value, where 0 = 1928-1999 and 1 = 2000-2053.
> >>
> >> I haven't followed this thread closely and, fortunately, I work in a
shop
> >>that
> >> started using 8-digit dates ten years ago.  But the above quote caught
my
> >>eye.
> >>  How do you represent May 1, 1925 using CYYMMDD?  May 1, 2054?  Why
> >>wouldn't a
> >> century digit of 0 cover all the years 1900-1999?  And so on?
> >>
> >> Dan Bale
> >> IT - AS/400
> >> Handleman Company
> >> 248-362-4400  Ext. 4952
> >>
> >
>
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.