<?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: Error Variable not found in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259169#M57424</link>
    <description>&lt;P&gt;Don't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your going to run into errors or unexpected behaviour.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2016 21:21:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-25T21:21:26Z</dc:date>
    <item>
      <title>Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259158#M57419</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I was just going through some simple nonparametric tests when I decided to try a procedure that would place two variables tha tI want to look at side by side in terms of frequency and counts, pre and post next to each other in a table:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;609&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc freq ;&lt;/P&gt;&lt;P class="p2"&gt;610 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;tables nihss lastmRs nihss*lastmRs / out=FreqCount outexpect sparse;&lt;/P&gt;&lt;P class="p2"&gt;611 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;weight Count;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable COUNT not found.&lt;/P&gt;&lt;P class="p2"&gt;612 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;title 'nihss and lastmrS';&lt;/P&gt;&lt;P class="p2"&gt;613&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="p2"&gt;WARNING: The data set WORK.FREQCOUNT may be incomplete.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;When this step was stopped there were 0 observations and 0 variables.&lt;/P&gt;&lt;P class="p2"&gt;NOTE: PROCEDURE FREQ used (Total process time):&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.01 seconds&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;614&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc print noobs;&lt;/P&gt;&lt;P class="p2"&gt;615 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;title2 'Output Data Set from PROC FREQ';&lt;/P&gt;&lt;P class="p2"&gt;616&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;NOTE: No variables in data set WORK.FREQCOUNT.&lt;/P&gt;&lt;P class="p2"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;617&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc freq ;&lt;/P&gt;&lt;P class="p2"&gt;618 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;tables nihss lastmRs nihss*lastmRs / out=FreqCount outexpect sparse;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable NIHSS not found.&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable LASTMRS not found.&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable NIHSS not found.&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable LASTMRS not found.&lt;/P&gt;&lt;P class="p2"&gt;619 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;weight Count;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable COUNT not found.&lt;/P&gt;&lt;P class="p2"&gt;620 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;title 'nihss and lastmrS';&lt;/P&gt;&lt;P class="p2"&gt;621&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;**first it said that count was not found, so then I decided to stop trying that procedure and go back to trying the other procedures and now my variables cannot be found:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;627&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc ttest h0 = 50;&lt;/P&gt;&lt;P class="p2"&gt;628&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;var age;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable AGE not found.&lt;/P&gt;&lt;P class="p2"&gt;629&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="p2"&gt;NOTE: PROCEDURE TTEST used (Total process time):&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;I have no idea how to reverse this. &amp;nbsp;It seems to be stuck on that first procedure I wanted tot ry....&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259158#M57419</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-25T21:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259159#M57420</link>
      <description>&lt;P&gt;All of your Procs are missing DATA=DATASETNAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to tell the proc what dataset to use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default value is last created dataset, but there are exceptions so I recommend ALWAYS specifying it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259159#M57420</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-25T21:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259164#M57422</link>
      <description>&lt;P&gt;Ok-but that did not fix my bigger problem. &amp;nbsp;I was able to perform all of my proc steps &lt;U&gt;without&lt;/U&gt; the data=statement for that past couple of hours, but once I tried the above procedure, it messed something up. &amp;nbsp;I want to be able to do that again,&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;672&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc univariate data=iat.timetoiat;&lt;/P&gt;&lt;P class="p1"&gt;673&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;histogram punctorecanal/normal;&lt;/P&gt;&lt;P class="p1"&gt;674&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p2"&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.43 seconds&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.18 seconds&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;675&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;proc npar1way wilcoxon;&lt;/P&gt;&lt;P class="p2"&gt;676&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;class sex;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable SEX not found.&lt;/P&gt;&lt;P class="p2"&gt;677&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;var time_to_nuero;&lt;/P&gt;&lt;P class="p2"&gt;ERROR: Variable TIME_TO_NUERO not found.&lt;/P&gt;&lt;P class="p2"&gt;678&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;run;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P class="p2"&gt;NOTE: PROCEDURE NPAR1WAY used (Total process time):&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 seconds&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00 second&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259164#M57422</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-25T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259169#M57424</link>
      <description>&lt;P&gt;Don't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your going to run into errors or unexpected behaviour.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259169#M57424</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-25T21:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259170#M57425</link>
      <description>&lt;P&gt;Don't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your going to run into errors or unexpected behaviour.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259170#M57425</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-25T21:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259172#M57426</link>
      <description>&lt;P&gt;ok, I can do it agian (using the code below, &amp;nbsp;but now everything has a incorrect title...)&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; iat;&lt;SPAN class="s2"&gt;set&lt;/SPAN&gt; iat.timetoiat;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=iat.timetoiat;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259172#M57426</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-25T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259174#M57427</link>
      <description>&lt;P&gt;And it's actually likely the procedure before the Freq that messed things up since it doesn't have a data set to reference anymore.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259174#M57427</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-25T21:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259176#M57428</link>
      <description>I figured it out, you do&lt;BR /&gt;title;&lt;BR /&gt;&lt;BR /&gt;and it cancels all titles. thanks!</description>
      <pubDate>Fri, 25 Mar 2016 21:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259176#M57428</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-25T21:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259178#M57429</link>
      <description>&lt;P&gt;I really hope you do explicilty state your datasets...especially for future you or the analyst who has to read your code.&lt;/P&gt;
&lt;P&gt;For example, what is the source data for the proc means statement, the class or temp2 dataset&amp;nbsp;output from proc freq?&amp;nbsp;And&amp;nbsp;more importantly can you identify it without running the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data=class;
table age*sex/out=temp2;
run;

proc means;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Anyways, if your question is answered please mark it as answered.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/259178#M57429</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-25T21:44:14Z</dc:date>
    </item>
  </channel>
</rss>

