I have unzipped a xml file which name is Virage Survey.xml but as you are awarded of, it is not a valid, so how to convert this file name to a valid SAS file name. Can we also rename this file.
/*You could rename these files by RENAME() funtion.*/
%let path= c:\temp\ ; *the folder included "Virage Survey.xml" ;
data _null_;
rc=filename('x',"&path.");
did=dopen('x');
do i=1 to dnum(did);
fname=dread(did,i);
rc=rename(cats("&path.\",fname),cats("&path.\",compress(fname,'._','kad')),'file');
end;
did=dclose(did);
run;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.