Output CSV files in SAS University

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 105
Accepted Solution

Output CSV files in SAS University

  I am using the following code within a macro to export files in SAS University and the resulting file is a word document.

proc export data=normal&i

outfile="folders/mufolders/regr/nnormal&i"

dbms=csv replace;run;

 

How can I edit this code to have the output be a *.csv file?

 

 


Accepted Solutions
Solution
‎08-01-2016 08:49 AM
Super User
Posts: 19,851

Re: Output CSV files in SAS University

Posted in reply to jacksonan123

I'm surprised that worked, you need to change your outfiles, everything else looks correct. 

 

1. Add a csv extension 

2. Add a / before folders in path. 

 

Outfiles= "/folders/myfolders/regr/nnormal&i..csv"

View solution in original post


All Replies
Solution
‎08-01-2016 08:49 AM
Super User
Posts: 19,851

Re: Output CSV files in SAS University

Posted in reply to jacksonan123

I'm surprised that worked, you need to change your outfiles, everything else looks correct. 

 

1. Add a csv extension 

2. Add a / before folders in path. 

 

Outfiles= "/folders/myfolders/regr/nnormal&i..csv"

Frequent Contributor
Posts: 105

Re: Output CSV files in SAS University

Worked okay and csv files were output.

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 304 views
  • 0 likes
  • 2 in conversation