Focal Point
DATETRAN returns odd characters for Year 2000

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4861057932

August 01, 2007, 12:02 PM
Alan
DATETRAN returns odd characters for Year 2000
Data is in Oracle 10g. In DEFINE, use HDATE to convert date to DMYY, followed by DATETRAN to convert to DD-MMM-YYYY. Nearly all data translates properly, except Year 2000 (even have a few 01/01/1901 dates that converted properly). I verified the source data is correct.

Year 200 dates look like: 15-AUG-00ø0



DEFINE ...
EFFDT_DMYY/DMYY=HDATE(EFFECTIVE_DATE, 'DMYY');
EFFDT/A11 =DATETRAN(EFFDT_DMYY, '(DMYY)', '(-T)', 'EN', 11, 'A11');
END


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
August 01, 2007, 12:11 PM
Darin Lee
HDATE is used for translating date-time fields. It that what the original field is or is it just a date field? If it's just a date field, use CHGDAT instead.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
August 01, 2007, 12:24 PM
Alan
The date is an Oracle timestamp.


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
August 01, 2007, 01:38 PM
Darin Lee
And if you view the field EFFDT_DMYY, what does it look like?


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
August 01, 2007, 03:29 PM
Alan
Here's all three dates:

2006/01/19 00:00:00 19/01/2006 19-JAN-2006
2000/08/15 00:00:00 15/08/2000 15-AUG-00ø0
2000/08/15 00:00:00 15/08/2000 15-AUG-00ø0
2005/05/01 00:00:00 01/05/2005 01-MAY-2005


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
August 01, 2007, 04:13 PM
Darin Lee
Looks like you found a bug there. I get the same result. You probably will need to open a case with techsupport on this one.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
August 01, 2007, 04:23 PM
Alan
Darin,
Thanks -- I'll let you know what come of this...

Alan


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
August 08, 2007, 09:30 PM
Alan
Just a follow-up: I've submitted this as a case to IBI. So far they've duplicated the problem. I will let you know what happens...


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL