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 (January 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 24 Jan 2006 13:25:01 -0500
Reply-To:   Hari Prasadh <excel_hari@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Hari Prasadh <excel_hari@YAHOO.COM>
Subject:   Re: Error while creating folder through code
Comments:   To: Arthur Tabachneck <art297@NETSCAPE.NET>

Art,

Thanks for your response. I changed as you suggested (and I think Eric H probably asked me to put double quotes in each of my macro variables rather than in mkdir command) and its working perfectly fine.

I have one query. I thought that it is wrong to put quotes in each of the macro variables while constructing a path using more than one macro variable as the resultnant expression will contain the 2 quotes side by side. For example when I do

/* Change the path below if you are running from different computer*/ %Let ProjectRootFolderPath = "C:\Documents and Settings\abc\desktop\";

/*Provide the path of the Raw data file below - DO NOT change this if your folder structure is same as for the rest of the team.*/ %let PathofInitialData = "Temp\TR-ERT\";

%let FinalFolderName = "ProductA"; options xwait; %put &ProjectRootFolderPath.&PathofInitialData.&FinalFolderName;

The I get in the LOG

179 %put &ProjectRootFolderPath.&PathofInitialData.&FinalFolderName; "C:\Documents and Settings\abc\desktop\""Temp\TR-ERT\""ProductA" 180 X mkdir &ProjectRootFolderPath.&PathofInitialData.&FinalFolderName.;

If you see the above Log contains 2 quotes between desktop\ and temp and same in another place. i thought that one should avoid 2 quote situation as it would give errors. Am I wrong in this supposition. if no, then how is it that in the present case its not causing any erros while creating a new folder?

regards, Hari India


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