I am getting a note in the log "NOTE: In a call to the FEXIST routine, the fileref '~/practice_exer/Mth_Rep' exceeds 8 characters, and will be truncated." when I run the below macro %cr_root_sub_dir(maindir='~/practice_exer/Mth_Rep',subdir='APR2016'); The macro code is : %macro cr_root_sub_dir(maindir,subdir); %put _local_; %if &maindir = %then %do; %put 'Root directory is blank'; %goto exit; %end; %else %do; %if %sysfunc(fexist(&maindir)) %then %put 'Directory &maindir Already Exists'; %else %do; %let newdir = %sysfunc(dcreate(&maindir,'~')); %let newsubdir = %sysfunc(dcreate(&subdir,&maindir)); %end; %end; %exit:; %mend cr_root_sub_dir;
... View more