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 (March 2012, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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

Dear all,

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" '; %let FOLDERNAME=&date1;

x 'md "C:\.......................\&date1." ';

Does anyone have any suggestions?

Thank you in advance.

BW


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