Insert TAB Character in batch application

Discussions about editing and cleaning data
Forum rules
New release: CSPro 8.0
Post Reply
leulae
Posts: 46
Joined: December 16th, 2016, 5:51 am

Insert TAB Character in batch application

Post by leulae »

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: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Insert TAB Character in batch application

Post by josh »

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.
Post Reply