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



I just tried using QRY/400 on the file and they show correctly, as below...
Date Date Date Date Date Date Date
Date Date Date Date Date
USA Slash ISO Slash EUR Perd MDY Slsh MDY Dash MDY Perd MDY Comm
MDY None YMD Slsh YMD Dash YMD Perd YMD Comm
12/11/2008 2008-12-11 11.12.2008 12/11/08 12-11-08 12.11.08 12,11,08
12 11 08 08/12/11 08-12-11 08.12.11 08,12,11
07/02/2008 2008-07-02 02.07.2008 07/02/08 07-02-08 07.02.08 07,02,08
07 02 08 08/07/02 08-07-02 08.07.02 08,07,02
02/16/2007 2007-02-16 16.02.2007 02/16/07 02-16-07 02.16.07 02,16,07
02 16 07 07/02/16 07-02-16 07.02.16 07,02,16
09/26/2006 2006-09-26 26.09.2006 09/26/06 09-26-06 09.26.06 09,26,06
09 26 06 06/09/26 06-09-26 06.09.26 06,09,26

So, I just learned that the interactive SQL session attributes actually
control the format and separator used to display the values, NOT the format
defined in the PF.

Thanks.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of John Yeung
Sent: Wednesday, June 27, 2012 12:34 PM
To: RPG programming on the IBM i / System i
Subject: Re: I guess I don't know dates

How are you viewing the data in the physical file? For me (on V5R2), DSPPFM
and RUNQRY both show what I expect, which is YYYY-MM-DD for *ISO and
MM/DD/YY for *MDY. Further, the *ISO date field is length 10 while the *MDY
field is length 8.

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