LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: cc: Michael <michaelnx@GMAIL.COM>
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


Back to: Top of message | Previous page | Main SAS-L page