"0x1A" in asciioutput

Post Reply
JoachiM
Posts: 1
Joined: Mon Jul 25, 2011 12:26 pm
OLAP Product: TM1
Version: 9.1.3.
Excel Version: 2003

"0x1A" in asciioutput

Post by JoachiM »

Hi,

I have to extract data into a flat file which I do, using the asciioutput in TI. The data is supposed to be imported into a SQL database, which shows a error because of the "0x1A" at the end of the file.
Is there any possibility to erase this character (other than by hand, because the data is extracted every night).

Thank you.
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: "0x1A" in asciioutput

Post by Andy Key »

Use TextOutput rather than AsciiOutput.
Andy Key
Catherine
Posts: 110
Joined: Wed May 20, 2009 7:30 am
OLAP Product: TM1
Version: 10.2.2 - PA
Excel Version: 2010
Location: Rennes, France

Re: "0x1A" in asciioutput

Post by Catherine »

Is it the only difference between those two functions?
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: "0x1A" in asciioutput

Post by Alan Kirk »

Catherine wrote:Is it the only difference between those two functions?
No; ASCIIOutput was the original method from the days when TM1 could only handle... well, ASCII. TextOutput was introduced in conjunction with the change to Unicode. It can write in the machine's local character set which you can also vary via the SetOutputCharacterSet function.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Catherine
Posts: 110
Joined: Wed May 20, 2009 7:30 am
OLAP Product: TM1
Version: 10.2.2 - PA
Excel Version: 2010
Location: Rennes, France

Re: "0x1A" in asciioutput

Post by Catherine »

Thank you !
Post Reply