COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: hespora on 15 Sep 2025 04:53:05 AM

Title: issues with casting a number to a string
Post by: hespora on 15 Sep 2025 04:53:05 AM
Hi all,


i'm in the situation that I need to export an excel file from C11 that does not observe my system's settings for number formatting. I.e., my PC is setup in German, so decimal delimiter comma and thousands delimiter point, but I need to export a number column with decimal delimiter point and thousands delimiter none.

I know that I can pretty much forget plain data formatting within Cognos; if excel recognizes the column as number, it ignores whatever cognos formatting is there and applies its own. So I thought I can just cast the value as varchar(99), but now the values come through as scientific notation, e.g., 182.144 becomes 1.82144E+02.

Is there any way I can get what I need?

Title: Re: issues with casting a number to a string
Post by: bus_pass_man on 15 Sep 2025 05:25:47 AM
If you export it as a CSV and open the CSV in an editor such as notepad++  what does the data look like?

Quotebut now the values come through as scientific notation,
In Excel or Cognos?