<?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: Questions about create new data sets and merge them into one in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124266#M25445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;MisoLee wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;(1) why did it mention variable PERWT04F is uninitialized while my commands are dealing with PERWT05F&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;The variables reported as uninitialized are appearing in your length statement, so they are created. They are not initialized because 1) the dataset in the set statement does not contain them and 2) you do not assign a value to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of variables differes because some of the variables created by the length statement exist in the data set and match the Keep list but not in the first data step. In the first date step you have keep variables with 05 in the name that will not appear in the second data set because they were not on the keep statement of the second..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 20:08:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-04-29T20:08:37Z</dc:date>
    <item>
      <title>Questions about create new data sets and merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124263#M25442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create 7 new data sets from 2004 to 2010. Then I hope to merge them into one. The result for the first data (i.e. 2004) is fine. But from 2005, the log shows weird results as the attachment. So my questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) why did it mention variable PERWT04F is uninitialized while my commands are dealing with PERWT05F&lt;/P&gt;&lt;P&gt;(2) why there are 35 variables in the first part of commands but only 27 variables left after the second part of command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124263#M25442</guid>
      <dc:creator>MisoLee</dc:creator>
      <dc:date>2013-04-29T17:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about create new data sets and merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124264#M25443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are those variables in your length statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124264#M25443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-29T17:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about create new data sets and merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124265#M25444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, from your log your second data table has the same name as the first and the SET statement is for the same table.&amp;nbsp; I think you need to change the names of each of your tables to something like DATA MEPS0&lt;STRONG&gt;5&lt;/STRONG&gt;, for the first, DATA MEPS0&lt;STRONG&gt;6&lt;/STRONG&gt; for the second. and so on.&amp;nbsp; also each table should have the same set (source table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE YEAR=2005;&amp;nbsp;&amp;nbsp; for the first,.&lt;/P&gt;&lt;P&gt;WHERE YEAR=2006;&amp;nbsp; for the second,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124265#M25444</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-04-29T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about create new data sets and merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124266#M25445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;MisoLee wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;(1) why did it mention variable PERWT04F is uninitialized while my commands are dealing with PERWT05F&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;The variables reported as uninitialized are appearing in your length statement, so they are created. They are not initialized because 1) the dataset in the set statement does not contain them and 2) you do not assign a value to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of variables differes because some of the variables created by the length statement exist in the data set and match the Keep list but not in the first data step. In the first date step you have keep variables with 05 in the name that will not appear in the second data set because they were not on the keep statement of the second..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 20:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124266#M25445</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-04-29T20:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about create new data sets and merge them into one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124267#M25446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out now. Thank everyone for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 20:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-about-create-new-data-sets-and-merge-them-into-one/m-p/124267#M25446</guid>
      <dc:creator>MisoLee</dc:creator>
      <dc:date>2013-04-29T20:46:52Z</dc:date>
    </item>
  </channel>
</rss>

