<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to convert an XML file name to a valid sas filename on a Unix server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-an-XML-file-name-to-a-valid-sas-filename-on-a/m-p/913671#M44226</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have unzipped a xml file which name is&amp;nbsp;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.&amp;nbsp; Can we also rename this file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 20:37:45 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-01-30T20:37:45Z</dc:date>
    <item>
      <title>How to convert an XML file name to a valid sas filename on a Unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-an-XML-file-name-to-a-valid-sas-filename-on-a/m-p/913671#M44226</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have unzipped a xml file which name is&amp;nbsp;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.&amp;nbsp; Can we also rename this file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-an-XML-file-name-to-a-valid-sas-filename-on-a/m-p/913671#M44226</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-01-30T20:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert an XML file name to a valid sas filename on a Unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-an-XML-file-name-to-a-valid-sas-filename-on-a/m-p/913909#M44240</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*You could rename these files by RENAME() funtion.*/
%let path= c:\temp\ ;  *the folder included "Virage Survey.xml" ;
data _null_;
rc=filename('x',"&amp;amp;path.");
did=dopen('x');
do i=1 to dnum(did);
 fname=dread(did,i);
 rc=rename(cats("&amp;amp;path.\",fname),cats("&amp;amp;path.\",compress(fname,'._','kad')),'file');
end;
did=dclose(did);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2024 03:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-convert-an-XML-file-name-to-a-valid-sas-filename-on-a/m-p/913909#M44240</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-01T03:06:14Z</dc:date>
    </item>
  </channel>
</rss>

