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
ASCIIOutput a tab delimited file
- 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
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.
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
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- 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
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
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
- 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
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
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
-
- 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
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
I just need to get rid of the "" around each field now,
Regards,
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
ok I have it with
DatasourceASCIIDelimiter=Char(9);
DatasourceASCIIQuoteCharacter='';
Thanks for your help,
Fionnuala
DatasourceASCIIDelimiter=Char(9);
DatasourceASCIIQuoteCharacter='';
Thanks for your help,
Fionnuala
- 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
You can use the DatasourceASCIIQuoteCharacter variable for that: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
DatasourceASCIIQuoteCharacter='';
Michel
Edit - Ok, you already found that
