ASCIIOutput a tab delimited file

Post Reply
Fionnuala
Posts: 19
Joined: Tue Mar 24, 2009 12:12 pm
OLAP Product: TM1
Version: 9.4.1 FP3 HF4 and 10.2
Excel Version: 2007 and 2010

ASCIIOutput a tab delimited file

Post by Fionnuala »

Hello,
I'm using ASCIIOutput to create a file but need it to be a tab delimited type.
Does anyone know if it's possible to specifiy this in TI?
Thanks for your help,
Fionnuala
User avatar
jim wood
Site Admin
Posts: 3958
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: ASCIIOutput a tab delimited file

Post by jim wood »

It is comma delimited only as far as I am aware. You could write a btach file that opens the file and replaces commas with tabs. You could run the batch within TI after the ASCIIOuput has finished,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Fionnuala
Posts: 19
Joined: Tue Mar 24, 2009 12:12 pm
OLAP Product: TM1
Version: 9.4.1 FP3 HF4 and 10.2
Excel Version: 2007 and 2010

Re: ASCIIOutput a tab delimited file

Post by Fionnuala »

Thanks Jim, I'll try that.
It certainly seems like there's no option in TI so a batch file might do the trick.
Thanks,
Fionnuala
BTW I'm using 9.4FP3
User avatar
Michel Zijlema
Site Admin
Posts: 712
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: ASCIIOutput a tab delimited file

Post by Michel Zijlema »

Hi,

You can use the DatasourceASCIIDelimiter TI variable to specify the field separator.
F.i.: DatasourceASCIIDelimiter=Char(code);
where code is the ascii code for tab.

Michel
Fionnuala
Posts: 19
Joined: Tue Mar 24, 2009 12:12 pm
OLAP Product: TM1
Version: 9.4.1 FP3 HF4 and 10.2
Excel Version: 2007 and 2010

Re: ASCIIOutput a tab delimited file

Post by Fionnuala »

Thanks very much Michel, that seems to have worked with the code 9 for tab..
I just need to get rid of the "" around each field now,
Regards,
Fionnuala
Fionnuala
Posts: 19
Joined: Tue Mar 24, 2009 12:12 pm
OLAP Product: TM1
Version: 9.4.1 FP3 HF4 and 10.2
Excel Version: 2007 and 2010

Re: ASCIIOutput a tab delimited file

Post by Fionnuala »

ok I have it with
DatasourceASCIIDelimiter=Char(9);
DatasourceASCIIQuoteCharacter='';

Thanks for your help,
Fionnuala
User avatar
Michel Zijlema
Site Admin
Posts: 712
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: ASCIIOutput a tab delimited file

Post by Michel Zijlema »

Fionnuala wrote:Thanks very much Michel, that seems to have worked with the code 9 for tab..
I just need to get rid of the "" around each field now
You can use the DatasourceASCIIQuoteCharacter variable for that:
DatasourceASCIIQuoteCharacter='';

Michel

Edit - Ok, you already found that ;)
Post Reply