Leading zeros in AsciiOutPut being dropped
Posted: Thu Aug 29, 2019 5:45 am
Hello everyone,
Just a quick question as I'm dealing with an issue which I'm sure has been solved but can't seem to find anything on this.
I'm doing an ASCIIOUTPUT and one of the fields is an account dimension. This account dimension has 6 digits and various accounts include leading zeros i.e. 000123, 000456, etc.
When exporting to .csv and opening the exported file it drops the leading zeros so the result of this account dim is 123, 456, etc.
Normally I'd output to a .txt and it wouldn't matter but the intent is to grab data from the .csv and copy and paste it to an upload file to an external system.
The account dim that I am exporting is being read from the variables tab on the TI i.e. vAccount.
The ASCIIOutPut looks like this ( sFile, vAccount, aaa, bbb, ccc, etc.)
The .csv I am exporting from TM1 is laid out exactly in the order and format required to make the copy/paste function fairly simple except for this small nuisance of the leading zeros being dropped.
Any advice would be much appreciated!
Cheers
Just a quick question as I'm dealing with an issue which I'm sure has been solved but can't seem to find anything on this.
I'm doing an ASCIIOUTPUT and one of the fields is an account dimension. This account dimension has 6 digits and various accounts include leading zeros i.e. 000123, 000456, etc.
When exporting to .csv and opening the exported file it drops the leading zeros so the result of this account dim is 123, 456, etc.
Normally I'd output to a .txt and it wouldn't matter but the intent is to grab data from the .csv and copy and paste it to an upload file to an external system.
The account dim that I am exporting is being read from the variables tab on the TI i.e. vAccount.
The ASCIIOutPut looks like this ( sFile, vAccount, aaa, bbb, ccc, etc.)
The .csv I am exporting from TM1 is laid out exactly in the order and format required to make the copy/paste function fairly simple except for this small nuisance of the leading zeros being dropped.
Any advice would be much appreciated!
Cheers