Ascii output ,blank row at end
Posted: Mon Feb 04, 2019 8:21 pm
Hi,
I am doing ascii ouput of few files from TI .
The file is always having a blank row at the end . We are not sure whats causing this and is there a way to not having this blank row at end .
I am pasting my TI code that extracts the file .
Prolog:
DatasourceASCIIDelimiter=Char(9);
DatasourceASCIIQuoteCharacter='';
count = 0;
Data :
IF (count = 0);
ASCIIOUTPUT('Extracts\\Countries.txt', 'All Countries', 'Area', 'Region','Country', 'CountryDescription');
ENDIF;
vLev1 =ELPAR('Countries', vElement, 1);
vLev2 =ELPAR('Countries', vLev1, 1);
vCountryAttr = ATTRS('Countries', vElement, 'Description');
IF (vCountryAttr @= '');
vCountryAttr = vElement;
ENDIF;
SetOutputEscapeDoubleQuote('Extracts\\Countries.txt', 1);
ASCIIOUTPUT('Extracts\\Countries.txt', 'All Countries', vLev2, vLev1,vElement, vCountryAttr);
count = count +1;
Any suggestions is appreciated.
Thanks,
I am doing ascii ouput of few files from TI .
The file is always having a blank row at the end . We are not sure whats causing this and is there a way to not having this blank row at end .
I am pasting my TI code that extracts the file .
Prolog:
DatasourceASCIIDelimiter=Char(9);
DatasourceASCIIQuoteCharacter='';
count = 0;
Data :
IF (count = 0);
ASCIIOUTPUT('Extracts\\Countries.txt', 'All Countries', 'Area', 'Region','Country', 'CountryDescription');
ENDIF;
vLev1 =ELPAR('Countries', vElement, 1);
vLev2 =ELPAR('Countries', vLev1, 1);
vCountryAttr = ATTRS('Countries', vElement, 'Description');
IF (vCountryAttr @= '');
vCountryAttr = vElement;
ENDIF;
SetOutputEscapeDoubleQuote('Extracts\\Countries.txt', 1);
ASCIIOUTPUT('Extracts\\Countries.txt', 'All Countries', vLev2, vLev1,vElement, vCountryAttr);
count = count +1;
Any suggestions is appreciated.
Thanks,