As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tip of the Day:February 13

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

ODS CSV and PROC PRINT can be used to easily produce a comma-delimited text file from a SAS data set with either variable names or labels in the first record of the file. You might not know that you can change the delimiter in the text file from a comma to any character you choose, for example...

ods csv file='z:\class.txt' options(delimiter='|');
proc print data=sashelp.class noobs;
ods csv close;

will produce a pipe-delimited file (CLASS.TXT) a portion of which looks as follows ...


If the ODS CSV option does not work for you, download an updated CSV tagset at the "see also" link.

Submitted By Mike Zdeb

Feel free to comment on this tip.

Prior tip - Next tip - Random Tip

Submit a Tip