<?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 Re: Data Set name does not match file name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853538#M337375</link>
    <description>&lt;P&gt;Normally dots are not accepted as part of a data set name because of other syntax, such as the LIBNAME.DATASET rules.&lt;/P&gt;
&lt;P&gt;If you want to use those non-standard names then you set the option Validmemname=Extend to allow non-standard dataset names and then use a name literal, the name enclosed in quotes followed by an N.&lt;/P&gt;
&lt;PRE&gt;options validmemname=extend;

proc contents data=mylib.'Mydataset.01Dec2022'n ;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Jan 2023 18:47:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-01-12T18:47:40Z</dc:date>
    <item>
      <title>Data Set name does not match file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853532#M337372</link>
      <description>&lt;P&gt;I have a data set we'll say is simply called "MyDataset".&amp;nbsp; &amp;nbsp;Normally this would be saved as a file called "MyDataset.sas7bdat".&amp;nbsp; &amp;nbsp;However, some automated program on the server (not SAS) moves older files into an archive appends dates to the file - so now my file is called:&amp;nbsp;"MyDataset.01Dec2022.sas7bdat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I read this file in SAS without renaming the file?&amp;nbsp; &amp;nbsp;Third party ODBC connectors don't seem to have an issue, but I'm just trying to use windows sas.exe and I get all kinds of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LibName myLib 'E:\Archive' ;&lt;/P&gt;&lt;P&gt;proc contents data =myLib.MyDataset.01Dec2022;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;-or-&lt;BR /&gt;&lt;BR /&gt;proc contents varnum data='E:\Archive\MyDataset.01Dec2022.sas7bdat';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If I rename the file so the filename matches the dataset name, I have no issues.&amp;nbsp; How can I read the file without changing the file name?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853532#M337372</guid>
      <dc:creator>tdegen</dc:creator>
      <dc:date>2023-01-12T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set name does not match file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853538#M337375</link>
      <description>&lt;P&gt;Normally dots are not accepted as part of a data set name because of other syntax, such as the LIBNAME.DATASET rules.&lt;/P&gt;
&lt;P&gt;If you want to use those non-standard names then you set the option Validmemname=Extend to allow non-standard dataset names and then use a name literal, the name enclosed in quotes followed by an N.&lt;/P&gt;
&lt;PRE&gt;options validmemname=extend;

proc contents data=mylib.'Mydataset.01Dec2022'n ;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853538#M337375</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-12T18:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set name does not match file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853559#M337385</link>
      <description>&lt;P&gt;Two things come to my mind.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the automatic archiver should use an underline, not a dot, to separate the date. Underlines cause much less hassle&lt;/LI&gt;
&lt;LI&gt;the date should be only digits in YMD order (YYYYMMDD). Makes handling such files much easier&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Set-name-does-not-match-file-name/m-p/853559#M337385</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-12T19:34:24Z</dc:date>
    </item>
  </channel>
</rss>

