Date: Mon, 19 Mar 2012 08:25:30 -0400
Reply-To: anon <rhian.pilling@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: anon <rhian.pilling@GMAIL.COM>
Subject: Creating a folder in SAS program
I have found codes from previous SAS lists which creates a folder in SAS.
However, they do not work when I use a macro.
My aim is, that I would like to create a folder for each month that I run
this programme and for the output to go directly into the folder for that month.
The codes that I have found and tried are below, however when I introduce a
macro (which gives the month and year programme was run) then the folder
created is &date1 and not monthyear as it does in the program itself.
CODES - date1 is the macro for the day and month.
x 'md "C:\.....................\&Foldername" ';
x 'md "C:\.......................\&date1." ';
Does anyone have any suggestions?
Thank you in advance.