Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2007

Tip: Looking for answers? Try searching our database.

DB2 UDB LUW Call to procedure from command line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pspivack@snet.net - 09 Feb 2007 20:18 GMT
I have the following in my procedure:

CREATE PROCEDURE x_proc ( IN from_date timestamp
                                             , IN to_date timestamp
                                             , IN data_center char(1)
                                             , IN run_option int)

My db2 command line is:

db2 -t -v -z x_log "call x_proc('2007-02-09-01.00.00.000000',
'2007-02-09-01.00.00.000000', 'X', 1)"

And I get the following error.

SQL0180N The syntax of the string representation of a datetime value
is incorrect. SQLSTATE=22007

Something with the timestamp, but I haven't been able to figure it out
just yet. Any thoughts? Thanks.
jefftyzzer - 10 Feb 2007 00:07 GMT
On Feb 9, 12:18 pm, pspiv...@snet.net wrote:
> I have the following in my procedure:
>
[quoted text clipped - 15 lines]
> Something with the timestamp, but I haven't been able to figure it out
> just yet. Any thoughts? Thanks.

What happens when you execute

VALUES TIMESTAMP('2007-02-09-01.00.00.000000')

from the CLP?

--Jeff
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.