|
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
|