<?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: Variables Do Not Exist in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905127#M40426</link>
    <description>&lt;P&gt;As you can see, there are leading underlines in the variable names. This points to special characters being present in the spreadsheet. Use the names (not the labels!) as shown, or correct the header row in the spreadsheet before importing.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 08:17:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-11-29T08:17:51Z</dc:date>
    <item>
      <title>Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905083#M40419</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm currently getting the error message that says the file I'm trying to call in does not exist. As you can see from my screenshot, there is output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_1-1701234510985.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90417iCAC9012D88F6C3CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_1-1701234510985.png" alt="annwashburn_1-1701234510985.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, in the screen print below it's stating that the variables do not exist.&amp;nbsp; &amp;nbsp;What am I doing wrong?&amp;nbsp; I've never had this problem before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_2-1701234630385.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90418i4B44B61898B0E6F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_2-1701234630385.png" alt="annwashburn_2-1701234630385.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_3-1701234740082.png" style="width: 634px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90419i91536C7C87FB8595/image-dimensions/634x198?v=v2" width="634" height="198" role="button" title="annwashburn_3-1701234740082.png" alt="annwashburn_3-1701234740082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 05:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905083#M40419</guid>
      <dc:creator>annwashburn</dc:creator>
      <dc:date>2023-11-29T05:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905096#M40420</link>
      <description>&lt;P&gt;Run a PROC CONTENTS immediately after the PROC IMPORT to see the variable names.&lt;/P&gt;
&lt;P&gt;Hint: set&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the import to avoid "iffy" names.&lt;/P&gt;
&lt;P&gt;Or edit the first row of the spreadsheet before you import it.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905096#M40420</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-29T07:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905098#M40421</link>
      <description>&lt;P&gt;For your last screenshot: Can you please run this code in a new SAS session with the import step you've got and then add:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work.bodyfat;
quit;&lt;BR /&gt;proc&amp;nbsp;univariate&amp;nbsp;data=bodyfat&amp;nbsp;plot;&lt;BR /&gt; &amp;nbsp;var&amp;nbsp;age&amp;nbsp;weight&amp;nbsp;height;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the import step runs without errors and the proc contents lists variables age, weight and height then the proc plot just must work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905098#M40421</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-29T07:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905110#M40422</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I tried your suggestion.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_0-1701243639222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90425i0803D6C7EB9E7004/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_0-1701243639222.png" alt="annwashburn_0-1701243639222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However, I still got the same error. The variables are not populating in the output.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_1-1701243689614.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90426iB47A3E2CB95D9CA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_1-1701243689614.png" alt="annwashburn_1-1701243689614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905110#M40422</guid>
      <dc:creator>annwashburn</dc:creator>
      <dc:date>2023-11-29T07:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905115#M40423</link>
      <description>&lt;P&gt;My problem still remains.&amp;nbsp; The variables are not populating in the output.&amp;nbsp; Again, I've never had this problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_0-1701244225463.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90429i6D073806E45BBC6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_0-1701244225463.png" alt="annwashburn_0-1701244225463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905115#M40423</guid>
      <dc:creator>annwashburn</dc:creator>
      <dc:date>2023-11-29T07:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905116#M40424</link>
      <description>&lt;P&gt;Where is the output of PROC CONTENTS?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905116#M40424</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-29T07:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905124#M40425</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Attached is the code I used:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_0-1701244770399.png" style="width: 602px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90431iC963AE6837EE9638/image-dimensions/602x149?v=v2" width="602" height="149" role="button" title="annwashburn_0-1701244770399.png" alt="annwashburn_0-1701244770399.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is the output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_1-1701244903107.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90432iFEC631599295AABD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_1-1701244903107.png" alt="annwashburn_1-1701244903107.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_2-1701244932573.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90433iED3F40BFD2DCD124/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_2-1701244932573.png" alt="annwashburn_2-1701244932573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then the code stops processing....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_3-1701245126519.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90434iB42B488F97C7C553/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_3-1701245126519.png" alt="annwashburn_3-1701245126519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905124#M40425</guid>
      <dc:creator>annwashburn</dc:creator>
      <dc:date>2023-11-29T08:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905127#M40426</link>
      <description>&lt;P&gt;As you can see, there are leading underlines in the variable names. This points to special characters being present in the spreadsheet. Use the names (not the labels!) as shown, or correct the header row in the spreadsheet before importing.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905127#M40426</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-29T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905159#M40428</link>
      <description>&lt;P&gt;You can see the problem in your screen shot.&lt;/P&gt;
&lt;P&gt;Notice the horizontal position of the letter C in the variable 'Case Number'n .&lt;/P&gt;
&lt;P&gt;Then notice that the first visible letter in the other variable names is slightly shifted to the right for the other variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run PROC CONTENTS and create a DATASET with the variable names.&amp;nbsp; Then use the NLITERAL() function to generate strings you can use to reference those strange variable names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=bodyfat out=contents; run;

data _null_;
  set contents;
  nliteral=nliteral(name);
  put nliteral name=$quote. label=$quote.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then copy and paste the name literal strings from the SAS log into your VAR statement.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 13:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905159#M40428</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-29T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Do Not Exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905294#M40432</link>
      <description>&lt;P&gt;I corrected the column headers in Excel, reloaded the file and now I'm good to GO!!&amp;nbsp; &amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annwashburn_0-1701305157531.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90472iE08FCCA455BF0AED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annwashburn_0-1701305157531.png" alt="annwashburn_0-1701305157531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 00:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-Do-Not-Exist/m-p/905294#M40432</guid>
      <dc:creator>annwashburn</dc:creator>
      <dc:date>2023-11-30T00:46:37Z</dc:date>
    </item>
  </channel>
</rss>

