Focal Point
DATETRAN returns odd characters for Year 2000
August 01, 2007, 12:02 PM
AlanDATETRAN 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 LeeHDATE 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
AlanThe 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 LeeAnd 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
AlanHere'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 LeeLooks 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
AlanDarin,
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
AlanJust 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