Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Johan den Boer — — source: Informix-list mailing list archive (1991-1998)
KPonn wrote:
> Hi
>
> I am trying to fetch a Decimal(16,4) field into Some_variable with Indicator. I
> am getting error -1223
>
> Ex: Fetch sel_cur into :x indicator :y
>
> In C, what type should x (double, float, int etc ????) be ? Can I use
> Indicator variables for decimal fields ?
>
> Thanks for your help.
Yes you can. You should use type double for decimal(16,4) and type short
for indicator variables.
example
$begin declare section;
double f_money;
short i_money;
$end declare section;
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.