|
You might want to remove the "/ Store" parameter on the macro call. I
grabbed that from one of my production macro libs and should have taken it
out.
Phil
Philip Rack
MineQuest, LLC
SAS & WPS Consulting and WPS Reseller
Tel: (614) 457-3714
Web: www.MineQuest.com
Blog: www.MineQuest.com/WordPress
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Philip
Rack
Sent: Wednesday, June 17, 2009 2:10 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: DVD as output of datastep or proc append
Don,
I don't have a rewritable DVD to write to for complete testing, but I do
have a a recordable CD as media to test this with. I need to buy some R/W
DVD's I guess. I can write/copy a data set to CD-R no problem with WPS and I
suspect SAS will work the same way. Here's my code.
libname mylib clear;
libname mylib 'c:\testcd';
%macro CopyFile(FromDest,ToDest) / Store;
%let _copystmt = %unquote(%str(%'copy "&FromDest" "&ToDest" /y%'));
x &_copystmt;
%mend Copyfile;
data mylib.testb;
do ii=1 to 10000;
a=ranuni(0);
b=ranuni(0);
c=ranuni(0);
d=ranuni(0);
e=ranuni(0);
f=ranuni(0);
g=ranuni(0);
h=ranuni(0);
i=ranuni(0);
aa=round(c*10,1);
output;
end;
run;
%copyfile(c:\testcd\testb.sas7bdat,f:\testb.sas7bdat);
You might be able to write directly to it if you try using a tape engine or
the SAS sequential engine too. But at any rate, this gets your data set onto
recordable media.
Phil
Philip Rack
MineQuest, LLC
SAS & WPS Consulting and WPS Reseller
Tel: (614) 457-3714
Web: www.MineQuest.com
Blog: www.MineQuest.com/WordPress
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Don
Sent: Wednesday, June 17, 2009 11:20 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: DVD as output of datastep or proc append
Has anyone written directly to a DVD drive using SAS? ver 8.2 ? ver
9.x?
|