Date: Wed, 19 Oct 2005 11:08:58 +0800
Reply-To: KUMAR Arun <KUMARA@ESSILOR.COM.SG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: KUMAR Arun <KUMARA@ESSILOR.COM.SG>
Subject: Re: How to create a CVS file
Content-Type: text/plain
Hi Michael,
You can do with file (not infile!) or proc export...
Your code should be like:
PROC EXPORT DATA= WORK.AA
OUTFILE= "---\xxxx.csv"
DBMS=CSV REPLACE;
RUN;
data aa;
set test;
file '---\xxxx.csv' dlm=',';
put i j;
run;
Regards
Arun
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Michael
Sent: Wednesday, October 19, 2005 7:47 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to create a CVS file
Hi,
I have a dataset test. How to export dataset to CVS file?
data test;
do i=1 to 10;
do j=1 to 10;
output;
end;
end;
run;
Shall I use infile or proc export? Thanks for your help!
Best Regards,
Michael
|