If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm wondering if a global environment variable defining the format of a date exists for DB2 (as DBDATE for Informix or NLS_DATE_FORMAT for Oracle).
I get this error when trying to insert a date in a field date passing throught a 4gl program :
SQL statement error number -6372 (-301).
[IBM][CLI Driver][DB2/SUN] SQL0301N The value of input host variable or parameter number "" cannot be used because of its data type. SQLSTATE=07006
Thx
__________________
geoffrey
- Four J's Development Tools -
I was inserting a DATE value in a VARCHAR DB2 field, and then retrieve this value with an INSERT INTO statement inserting the value in a variable of type DATE.
I've find out a solution, positionning DBDATE (to Y4MD/ in my case).
__________________
geoffrey
- Four J's Development Tools -