Delimiter for ASCIIOutput

Post Reply
User avatar
mce
Community Contributor
Posts: 352
Joined: Tue Jul 20, 2010 5:01 pm
OLAP Product: Cognos TM1
Version: Planning Analytics Local 2.0.x
Excel Version: 2013 2016
Location: Istanbul, Turkey

Delimiter for ASCIIOutput

Post by mce »

Hi,

ASCIIOutput function uses comma as delimiter by default. Is it possible to force it to use a separate delimiter such as TAB?

Thanks in advance for responses.

Regards,
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: Delimiter for ASCIIOutput

Post by Alan Kirk »

mce wrote:Hi,

ASCIIOutput function uses comma as delimiter by default. Is it possible to force it to use a separate delimiter such as TAB?

Thanks in advance for responses.

Regards,
Look in the reference guide for the DatasourceASCIIDelimiter variable. Note that if you want to set it to a tab you'll need to use the CHAR() rules function to assign it via ASCII code. (The code value is 9 if memory serves.) Also, remember that it will affect both your source and your output; you can't have a comma delimited file for input but a tab delimited one for output. If the data source is (say) a cube view rather than a text file, that won't matter.
"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.
Post Reply