UDFs : Use of DECIMAL8
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


UDFs : Use of DECIMAL8 Expand / Collapse
Author
Message
Posted 6/14/2006 10:16:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/30/2006 10:58:00 AM
Posts: 1, Visits: 1
Hallo,

I'am trying to use the data type DECIMAL8 as input parameter in for an UDF.

In the BTEQ script :
CREATE FUNCTION udf_to_char(InputNumber DECIMAL(18,8))
...
is OK

In the C script :
void udf_to_char_d1(DECIMAL8 *InputNumber,
VARCHAR_LATIN *result,
...
is also OK

But has someone a sample of how I can use the following structure in my
C scripts in order to recover my number. I don't find documentation about
this.

typedef struct
{
unsigned long int low;
long int high;
} DECIMAL8, NUMERIC8; /*10 <= n <= 18 */

Regards,
Isabelle

Post #4373
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:11pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 4 queries. Compression Disabled.