Date: Tue, 21 Aug 2007 13:27:45 -0700
Reply-To: auto208611@HUSHMAIL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: auto208611@HUSHMAIL.COM
Organization: http://groups.google.com
Subject: Output two files via ODS
Content-Type: text/plain; charset="iso-8859-1"
I'm trying to output two different files with the same content on a
weekly basis.
One will be overwritten every week, the other is to keep as an
'archive' which
has the date it was processed on as part of the file name.
The first file listed, the one without the date, does not get
populated, while
the second one does.
Not sure if my order of ODS statements is correct.
Any insights?
Thanks.
%let reportdate = %sysfunc(putn(%sysfunc(date()),date9.));
ods html file = "c:\user\username\temp\Output_One.xls";
ods html file = "c:\user\username\temp\Output_One_&reportdate..xls";
proc report code goes here.
ods html close;
ods html close;