180 sqlcode

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Arun Rajput
New Member
Posts: 9
Joined: Tue Jan 20, 2015 8:40 am
India

180 sqlcode

Post by Arun Rajput »

I am getting 180 sqlcode while selecting record from table where date is current date ... didn't find any issue with date format...what could be the reason...any suggestions
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: 180 sqlcode

Post by Robert Sample »

The message seems pretty clear -- either the length of the date field you are using is wrong, or the format doesn't match what DB2 is expecting (YYYY-DD-MM instead of YYYY-MM-DD for example). Since you didn't provide us with anything else, that's about all we can say. If you had provided the query or at least the field in question, we might have been able to do more.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”