Page 1 of 1

"0x1A" in asciioutput

Posted: Mon Jul 25, 2011 12:42 pm
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.

Re: "0x1A" in asciioutput

Posted: Tue Jul 26, 2011 12:09 am
by Andy Key
Use TextOutput rather than AsciiOutput.

Re: "0x1A" in asciioutput

Posted: Tue Jul 26, 2011 12:15 pm
by Catherine
Is it the only difference between those two functions?

Re: "0x1A" in asciioutput

Posted: Tue Jul 26, 2011 6:35 pm
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.

Re: "0x1A" in asciioutput

Posted: Wed Jul 27, 2011 8:19 am
by Catherine
Thank you !