RE: Need Your Talent

RE: Need Your Talent

 

  


Jeffry,

Check this link for dates and times in db2 (fun with date and time)
http://www-128.ibm.com/developerworks/db2/library/techarticle/0211yip/02
11yip3.html

And then re-write the query.


Regards,
Rajesh Chandramohan
Offshore UDB DBA Team
180-066-62388 x 13311/37/97

Please note that the ODC UDB Operations work on a shift rotation basis,
therefore any ongoing communication generated from this e-mail should
have #ODC UDB or #DBA-UDB included in order to maintain a prompt
response.


-----Original Message-----
From: jeffrey
[mailto:db2udbdba-ezmlmshield-x82474122.[Email address protected]
Sent: Friday, August 24, 2007 3:43 PM
To: LazyDBA Discussion
Subject: Need Your Talent

Can someone please tell me why this won't work and how to fix it? Maybe
there is an easier way to do this. I am just trying to import the code
to DB2 from Oracle.



effDate is TIMESTAMP

EFF_DATE is TIMESTAMP





AND TO_CHAR( TO_DATE (COALESCE(ORA.TO_CHAR(effDate, 'DD.MM.YYYY'), ''),
'DD-MON-YY'), 'MM/YYYY') = TO_CHAR( EFF_DATE, 'MM/YYYY')





The error is

The data type, length or value of argument "2" of routine
"SYSIBM.TO_DATE" is incorrect.





Thanks for your help!



Jeff Hixson

Oracle Application Specialist

Accenture National Security Services



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.

--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.



DB2 & UDB email list listserv db2-l LazyDBA home page