Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Cognos Output removing leading zeros in CSV format

    Posted Wed April 26, 2023 07:47 AM

    Hi Everyone,

    We have a column and its datatype is varchar. While creating cognos dashboard we getting correct data and when exporting the data in csv the leading zeros are removed.

    Eg: we have 9 digit data 000123456 its displaying correctly in dashboard but in csv showing 123456. I have tried including space between the data but no luck.

    Please suggest to overcome this issue.

    Thanks in advance.



    ------------------------------
    Pavithra N
    ------------------------------


  • 2.  RE: Cognos Output removing leading zeros in CSV format

    Posted Thu April 27, 2023 05:27 AM

    Hi, I can confirm this, even though the data type is set correctly in the data module. I recommend to open a case for IBM. 



    ------------------------------
    Philipp Hornung
    Business Intelligence Manager
    Techniker Krankenkasse
    Hamburg Germany
    #IBMChampion
    ------------------------------



  • 3.  RE: Cognos Output removing leading zeros in CSV format

    Posted Thu April 27, 2023 08:48 AM

    What are you using to view the CSV file? Excel will remove the zeroes by default from memory. If you use something like Notepad does it still display without the leading zeroes?



    ------------------------------
    Chris Turner
    ------------------------------



  • 4.  RE: Cognos Output removing leading zeros in CSV format

    Posted Fri April 28, 2023 08:17 AM

    Hi Chris,

    If we open the file in notepad the zeros were not truncated only csv file truncating the Zeros. And we are going to raise PMR with IBM for this issue.



    ------------------------------
    Pavithra N
    ------------------------------



  • 5.  RE: Cognos Output removing leading zeros in CSV format

    Posted Fri April 28, 2023 08:16 AM

    Hi Phillipp,

    Thanks for your response. Yes we are going to raise PMR with IBM



    ------------------------------
    Pavithra N
    ------------------------------