I agree with Stealth DBA.
Another way would be to convert DECIMAL (7,0) in YYYYDDD format to DATE datatype. Like this:
Code:
------------------------------ Commands Entered ------------------------------
SELECT dec_date
, DATE(DIGITS(dec_date)) date
FROM (SELECT 2009275. FROM sysibm.sysdummy1) AS d(dec_date);
------------------------------------------------------------------------------
DEC_DATE DATE
--------- ----------
2009275. 2009-10-02
1 record(s) selected.
DATE('yyyynnn') is supported on DB2 UDB for: z/OS V8, iSeries V5R3, LUW V8.
Please see "SQL Reference for Cross-Platform Development Version 2 (DB2 UDB for: z/OS V8, iSeries V5R3, LUW V8)" in
The SQL Reference for Cross-Platform Development