BookmarkSubscribeRSS Feed
DanieleTiles
Calcite | Level 5
Hi to all,
I've to produce a csv with ';' as delimiter. I've searched for documentation, and found that it should be done by using

ods csv file='c:\test' options(delimitator=';');

...

...but it doesn't work, I still get a ',' as dlm.
Any idea?
Thanks

Daniele
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
I believe that the option (check your spelling, by the way) is only supported at SAS 9.2. and later.

Scott Barry
SBBWorks, Inc.
Cynthia_sas
SAS Super FREQ
Hi:
Check your syntax, I believe the suboption is DELIMITER, not DELIMITATOR. You may need to update the CSV tagset that you're using, especially if you're working in SAS 9.1.3. See this previous posting for more info:
http://support.sas.com/forums/thread.jspa?threadID=5414

When I run the below code in SAS 9.2, I get the ';' used as the delimiter. I believe the delimiter capability was accomplished in SAS 9.1.3 by using an updated CSV tagset template.

cynthia

[pre]
ods csv file='c:\temp\csvtest.csv'
options(doc='Help' delimiter=";");
proc print data=sashelp.class(obs=3);
run;
ods csv close;
[/pre]
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Searching the SAS discussion forum archives with keywords "ods csv change delimiter", the gem below appears in the match-results:

http://support.sas.com/forums/thread.jspa?messageID=19459䰃


I stand corrected - the support comes with an updated tagset.

Scott Barry
SBBWorks, Inc.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 6917 views
  • 0 likes
  • 3 in conversation