Support 805.461.7300
Sales
Our Technology. Your Success.

Export as tab delimited text with a header

COPY TO "c:\output.txt" TYPE CSV
SELECT * FROM (ALIAS()) WHERE .F. INTO CURSOR _convtotab READWRITE
APPEND FROM "c:\output.txt" TYPE DELIMITED
COPY TO "c:\output.txt" TYPE DELIMITED WITH TAB

To export as tab-delimited text with quotes, use:
 

COPY TO "C:\TEST_WITH_QUOTES.TXT" TYPE DELIMITED WITH TAB

To export as a tab-delimited WITHOUT quotes, use:
 

COPY TO "C:\TEST_WITHOUT_QUOTES.TXT" TYPE DELIMITED WITH "" WITH TAB

To export as semicolon-delimited text without quotes, use:

copy to c:\test.txt fields first,last DELIMITED WITH "" WITH CHARACTER ';'

To export as tab delimited text and specify the fields you'd like to export, alter your command in this fashion:

copy to c:\test.txt FIELDS first,last,company,address,city,st,zip DELIMITED WITH "" WITH CHARACTER TAB

« Back to Commands

"I recently ended probably the most helpful chat ever with your employee Aurora Crouch! She was so extremely thorough and made sure that the install and setup of Accuzip was ready to go. She was also so patient and polite as I fumbled around trying to remember how a PC works! I honestly can't say enough about how amazing and helpful and kind she was! I appreciate her help so very much, she is a great employee and makes it so easy for people like me (who have no idea what they are doing) to get things set up as they need to be. Thank you so much for all of your help and for having someone like Aurora on staff, she is literally a godsend!"
C.C., Savannah, GA