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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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