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 (May 2012, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 15 May 2012 09:55:04 -0400
Reply-To:     Randy <randistan69@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy <randistan69@HOTMAIL.COM>
Subject:      Macro to export to csv

My code is as follows:

data 1 ; set have ; if ID = 1 then output ; run;

PROC EXPORT DATA= want OUTFILE= "C:\Documents and Settings\Randy\Desktop\Batch Folders\1.csv" DBMS=CSV REPLACE; RUN;

My Id's run from 1 to over 10000. Is there a Macro that can be written to loop through the ID's and convert them into csv files.

Thank you all Randy


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