Insert TAB Character in batch application

Discussions about editing and cleaning data
leulae
Posts: 44
Joined: December 16th, 2016, 5:51 am

Insert TAB Character in batch application

Postby leulae » June 29th, 2019, 9:16 pm

Dear all

I need to output data as TAB delimited file, Export Data tool gives an option.

But I need insert some values calculated by the program and insert to output file.
In batch application I hope to use write function to create output file. The problem was how do I add TAB delimiter

Please kindly explain how do I add TAB character between each variable

eg
write ("%2d{tab}%s{tab}%2d{tab}%s",var1,var2,var3,var4);

Thanks in advance


Leulae

josh
Posts: 1871
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Insert TAB Character in batch application

Postby josh » June 30th, 2019, 9:34 am

You just need to type a tab character using the tab key on the keyboard. Tab characters passed to the write statement will be written to the file as tab characters.


Return to “Editing”