<?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: opening a sas dataset with invald sas name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758772#M80854</link>
    <description>&lt;P&gt;You have to tell SAS to allow use of non-standard names by changing the value of the VALIDVARNAME option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=ANY;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you could reference such names using name literals.&lt;/P&gt;
&lt;P&gt;It will probably make your coding a lot easier if you go ahead and make a copy of the dataset where the variable names are renamed to valid SAS names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set NC1.REF_ITMSTATSREAD5_O;
  rename 'TDS Item ID'n=TDS_item_id&amp;nbsp;;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 12:49:21 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-08-02T12:49:21Z</dc:date>
    <item>
      <title>opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758757#M80851</link>
      <description>&lt;P&gt;Attempting to use an externally supplied SAS dataset and get the following messages.&lt;/P&gt;&lt;P&gt;NOTE: Data file NC1.REF_ITMSTATSREAD5_O.DATA is in a format that is native to another host, or the file encoding does not match&lt;BR /&gt;the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might&lt;BR /&gt;reduce performance.&lt;BR /&gt;73 run;&lt;/P&gt;&lt;P&gt;ERROR: The value 'TDS Item ID'n is not a valid SAS name.&lt;BR /&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Need help reading or deleteing the 'TDS Item ID'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 11:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758757#M80851</guid>
      <dc:creator>AllenJ</dc:creator>
      <dc:date>2021-08-02T11:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758759#M80852</link>
      <description>&lt;P&gt;Try running this command and then seeing if you can read the data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future (that's 100% of the time in the future) do not show us parts of the log and fail to show us other parts of the log; in the future (that's 100% of the time in the future) do show us the entire log for this step so we can see the code as it appears in the log, plus any NOTEs, WARNINGs and ERRORs.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758759#M80852</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-02T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758760#M80853</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;complete&lt;/EM&gt; log of the failing step, so we can see what you try to do and where exactly the proplem happens.&lt;/P&gt;
&lt;P&gt;Use tge &amp;lt;/&amp;gt; button to open a code box where you can paste the log text.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758760#M80853</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-02T12:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758772#M80854</link>
      <description>&lt;P&gt;You have to tell SAS to allow use of non-standard names by changing the value of the VALIDVARNAME option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=ANY;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you could reference such names using name literals.&lt;/P&gt;
&lt;P&gt;It will probably make your coding a lot easier if you go ahead and make a copy of the dataset where the variable names are renamed to valid SAS names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set NC1.REF_ITMSTATSREAD5_O;
  rename 'TDS Item ID'n=TDS_item_id&amp;nbsp;;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758772#M80854</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-02T12:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758773#M80855</link>
      <description>Thanks, that works.</description>
      <pubDate>Mon, 02 Aug 2021 12:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758773#M80855</guid>
      <dc:creator>AllenJ</dc:creator>
      <dc:date>2021-08-02T12:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: opening a sas dataset with invald sas name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758928#M80860</link>
      <description>&lt;P&gt;Please update your post as answered in that case.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 00:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/opening-a-sas-dataset-with-invald-sas-name/m-p/758928#M80860</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-03T00:47:25Z</dc:date>
    </item>
  </channel>
</rss>

