<?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 Error Variable not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249745#M47003</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run logistic reg code but I am getting below error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;ERROR: Variable education not found.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;7 proc logistic data=work.bank1 desc;&lt;BR /&gt;8 model y= age job marital education default campaign cons_price_idx cons_conf_idx&lt;BR /&gt;8 ! euribor3m/ctable ;&lt;BR /&gt;9 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error says education variable is missing but I can see the variable in bank1.xls file when open in sas.What can I do to resolve this issue?Below is the code I am running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=work.bank1 desc;&lt;BR /&gt;model y= age job marital education default campaign cons_price_idx cons_conf_idx euribor3m/ctable ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please reply&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 16:46:15 GMT</pubDate>
    <dc:creator>sgupta</dc:creator>
    <dc:date>2016-02-12T16:46:15Z</dc:date>
    <item>
      <title>Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249745#M47003</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run logistic reg code but I am getting below error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;ERROR: Variable education not found.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;7 proc logistic data=work.bank1 desc;&lt;BR /&gt;8 model y= age job marital education default campaign cons_price_idx cons_conf_idx&lt;BR /&gt;8 ! euribor3m/ctable ;&lt;BR /&gt;9 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error says education variable is missing but I can see the variable in bank1.xls file when open in sas.What can I do to resolve this issue?Below is the code I am running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=work.bank1 desc;&lt;BR /&gt;model y= age job marital education default campaign cons_price_idx cons_conf_idx euribor3m/ctable ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please reply&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249745#M47003</guid>
      <dc:creator>sgupta</dc:creator>
      <dc:date>2016-02-12T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249748#M47005</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69960"&gt;@sgupta﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not enough that variable EDUCATION&amp;nbsp;is contained in some Excel file. As a rule, for the PROC LOGISTIC step it's mandatory that this variable is also contained in the SAS dataset WORK.BANK1, i.e. in a file bank1&lt;STRONG&gt;.sas7bdat&lt;/STRONG&gt;. You can check whether this is the case by submitting the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work.bank1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you see in the output of the above PROC CONTENTS step?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249748#M47005</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-12T16:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249752#M47006</link>
      <description>I can see below output&lt;BR /&gt;&lt;BR /&gt;[image: Inline image 1]&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 12 Feb 2016 17:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249752#M47006</guid>
      <dc:creator>sgupta</dc:creator>
      <dc:date>2016-02-12T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249754#M47007</link>
      <description>&lt;P&gt;when I run it I can see&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;under&amp;nbsp;Alphabetic List of Variables and Attributes:&lt;/P&gt;&lt;P&gt;Variable &amp;nbsp; &amp;nbsp; &amp;nbsp; Type....... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Label&lt;/P&gt;&lt;P&gt;EDUCATIO Num 8 BEST14. BEST14. EDUCATION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does it mean.do i need to add something in code?&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>Fri, 12 Feb 2016 17:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249754#M47007</guid>
      <dc:creator>sgupta</dc:creator>
      <dc:date>2016-02-12T17:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249755#M47008</link>
      <description>&lt;P&gt;I'm sorry, but I can't see your output. It shows as text "&lt;SPAN&gt;[image: Inline image 1]" in my browser. Strange.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But the only relevant information is: Does the PROC CONTENTS output show a variable &lt;EM&gt;named&lt;/EM&gt; EDUCATION (upper or lower case doesn't matter) or maybe only a variable whose &lt;EM&gt;label&lt;/EM&gt; is "Education"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249755#M47008</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-12T17:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249757#M47010</link>
      <description>&lt;P&gt;That's exactly what I meant. So, the solution (regarding this specific error at least) is as simple as deleting the "n" in "education" in your PROC LOGISTIC step: &lt;FONT face="courier new,courier"&gt;educatio&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249757#M47010</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-12T17:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249761#M47013</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;I similarly changed other variables and I am able to see output now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But can Run the original code with varibale names same as Label names?will adding label statement help?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249761#M47013</guid>
      <dc:creator>sgupta</dc:creator>
      <dc:date>2016-02-12T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249762#M47014</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, you have to provide variable names to PROC LOGISTIC, not variable labels. Please note that variable labels, unlike variable names, may contain virtually any kind of special characters etc., which would cause nothing but problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't like variable names such as&amp;nbsp;&lt;FONT face="courier new,courier"&gt;educatio&lt;/FONT&gt;&amp;nbsp;(which is the Latin word for "education", hence quite honorable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ), please feel free to rename your variables.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249762#M47014</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-12T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249783#M47028</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69960"&gt;@sgupta&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But can Run the original code with varibale names same as Label names?will adding label statement help?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assign labels to almost every variable in my permanent data sets because they make reading the results in procedures much easier. SAS will usually show at least some if not all of the next of the label in analysis procedures.&lt;/P&gt;
&lt;P&gt;If I have a variable named age_ptt and that text appears in the output, I am about the only one that might know what it stands for. if I haven't used the data for a while I might not even remember. But if I associate a label age_ptt="Age Prior to Treatment", then when the label appears in a procedure output it has much better use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The exceptions to adding label are variables such as Year, though if there are multiple year/date variables even that may get a label, and common data elements such as Phone or Zip.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-not-found/m-p/249783#M47028</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-12T18:34:28Z</dc:date>
    </item>
  </channel>
</rss>

