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;
SAS Innovate 2025: Register Now
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!
SAS Enterprise Guide vs. SAS Studio
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.