<?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 MIGRATION not found. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750665#M10048</link>
    <description>&lt;P&gt;Most of us will not download attached files, the proper way to provide data for us to use is: &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever you have an error, show us the LOG for that data step or PROC (in this case PROC MEANS) so we can see the actual code used and the actual ERROR message and the location in the log where the error appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, it seems pretty clear ... MIGRATION is not a variable in data set AL. Since AL is not your data, but rather the output from PROC CONTENTS, you cannot perform a PROC MEANS on AL. You want to perform a PROC MEANS on your actual data, which is in data set named data.alverdens_lande.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jun 2021 12:41:54 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-06-27T12:41:54Z</dc:date>
    <item>
      <title>ERROR: Variable MIGRATION not found.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750660#M10046</link>
      <description>&lt;P&gt;I run the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc contents data=data.alverdens_lande out=al;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=al;&lt;BR /&gt;var Migration;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The first part comes out fine, tells me all about the variable of which there 6 and 2 categorical variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then when i try to run mean of one of the numerical variables it cant find it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be an easy fix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750660#M10046</guid>
      <dc:creator>RazaTheLegend</dc:creator>
      <dc:date>2021-06-27T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable MIGRATION not found.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750663#M10047</link>
      <description>&lt;P&gt;I found the solution, it appears that simply writing out does not save the dataset as "al", so gotta figure out a way to do that &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750663#M10047</guid>
      <dc:creator>RazaTheLegend</dc:creator>
      <dc:date>2021-06-27T12:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable MIGRATION not found.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750665#M10048</link>
      <description>&lt;P&gt;Most of us will not download attached files, the proper way to provide data for us to use is: &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever you have an error, show us the LOG for that data step or PROC (in this case PROC MEANS) so we can see the actual code used and the actual ERROR message and the location in the log where the error appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, it seems pretty clear ... MIGRATION is not a variable in data set AL. Since AL is not your data, but rather the output from PROC CONTENTS, you cannot perform a PROC MEANS on AL. You want to perform a PROC MEANS on your actual data, which is in data set named data.alverdens_lande.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750665#M10048</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Variable MIGRATION not found.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750666#M10049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207489"&gt;@RazaTheLegend&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I found the solution, it appears that simply writing out does not save the dataset as "al", so gotta figure out a way to do that &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually, that's not the problem (and it's not a solution either). AL is saved in your work library. Please see my other post for the solution.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-Variable-MIGRATION-not-found/m-p/750666#M10049</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T12:51:02Z</dc:date>
    </item>
  </channel>
</rss>

