﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Data Warehousing  / Teradata   / Bad format or character? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 17:32:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Bad format or character?</title><link>http://www.teradata.com/teradataforum/Topic11639-1-1.aspx</link><description>Hi Papaya,Looking at your query, i am sure that your column is containing some non integer values thats why it is unable to convert it to decimal and giving u a error.</description><pubDate>Tue, 14 Oct 2008 13:02:09 GMT</pubDate><dc:creator>mihir_ray07</dc:creator></item><item><title>RE: Bad format or character?</title><link>http://www.teradata.com/teradataforum/Topic11639-1-1.aspx</link><description>Hi Vanathi, Can u please provide some more details as its working fine in my systemThanks</description><pubDate>Tue, 14 Oct 2008 13:00:21 GMT</pubDate><dc:creator>mihir_ray07</dc:creator></item><item><title>RE: Bad format or character?</title><link>http://www.teradata.com/teradataforum/Topic11639-1-1.aspx</link><description>Hi all,I am getting the same errror. My scenario is i have a field called source_system_code in a table of char '1' and not null. I am trying to insert a value 'V' into that. It is giving be error code 2621 saying bad character format in the field. Kindly help in this.Thanks,Vanathi</description><pubDate>Thu, 07 Aug 2008 07:48:17 GMT</pubDate><dc:creator>vanathi</dc:creator></item><item><title>RE: Bad format or character?</title><link>http://www.teradata.com/teradataforum/Topic11639-1-1.aspx</link><description>Is myvar column of varchar data type?If myvar is varchar data type then you might get this error "bad character in format or data" with error code 2621.This happens because, column being a varchar may contain character values also which cant be converted to decimal/integer by using cast. In this case you have to take care of char values in myvar column.hope this solves your problem.Please let know in case of wrong assumption.</description><pubDate>Thu, 29 May 2008 02:11:06 GMT</pubDate><dc:creator>dhirajpalse</dc:creator></item><item><title>Bad format or character?</title><link>http://www.teradata.com/teradataforum/Topic11639-1-1.aspx</link><description>I am uploading some SAS files into TD, trying to convert string to decimal. I use (case when myvar is null then -999 else cast( myvar as decimal(18,0)) ) as idBut TD gives me an error, saying the column might contains bad character. Why this happened?</description><pubDate>Wed, 28 May 2008 15:08:43 GMT</pubDate><dc:creator>papaya</dc:creator></item></channel></rss>