<?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 missing variable.. why? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421270#M27115</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my problem.&amp;nbsp; In my ctclaims (6 variables)&amp;nbsp;all of my data columns are perfectly populated.&amp;nbsp;&amp;nbsp;However, once I run my second proc sql code all of the 6 variables remain populated EXCEPT once called eventdate.&amp;nbsp; All of those are now missing.&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&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;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;a.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*, &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;b.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.controlclaims (keep=patid eventdate medcode) a, mart_tmp.elig_denomC(keep=patid elig_start elig_end yob) b&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; a.patid=b.patid &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; patid;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.allpregC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistP);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;*** extract outcome events during the study period;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.pregoutcomeC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistO);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;*** extract exclusion events during the study period;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.exclusionsC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistE);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 17:50:54 GMT</pubDate>
    <dc:creator>Dsquared</dc:creator>
    <dc:date>2017-12-14T17:50:54Z</dc:date>
    <item>
      <title>missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421270#M27115</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my problem.&amp;nbsp; In my ctclaims (6 variables)&amp;nbsp;all of my data columns are perfectly populated.&amp;nbsp;&amp;nbsp;However, once I run my second proc sql code all of the 6 variables remain populated EXCEPT once called eventdate.&amp;nbsp; All of those are now missing.&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&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;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt; &lt;FONT color="#008080" face="Courier New" size="3"&gt;a.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*, &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;b.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.controlclaims (keep=patid eventdate medcode) a, mart_tmp.elig_denomC(keep=patid elig_start elig_end yob) b&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; a.patid=b.patid &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; patid;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.allpregC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistP);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;*** extract outcome events during the study period;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.pregoutcomeC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistO);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;*** extract exclusion events during the study period;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.exclusionsC &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart_tmp.ctclaims&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; medcode &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mart.codelistE);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 17:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421270#M27115</guid>
      <dc:creator>Dsquared</dc:creator>
      <dc:date>2017-12-14T17:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421282#M27117</link>
      <description>&lt;P&gt;As you have 3 output tables, which one has missing values for the variable?&lt;/P&gt;
&lt;P&gt;And do you have any notes or errors in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 18:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421282#M27117</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-14T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421292#M27120</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table mart_tmp.ctclaims as
select a.*, b.*
............
where a.patid=b.patid&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is a sign of sloppy programming. You tolerate the warning for the already existing patid, and that will mask other WARNINGs for variables present in both input tables.&lt;/P&gt;
&lt;P&gt;Instead of asterisks, always write a comprehensive list of variables to be included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Never accept code to run with WARNINGs or extraneous NOTEs, let alone ERRORs.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 18:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421292#M27120</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-14T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421305#M27121</link>
      <description>&lt;P&gt;All three of the tables created from the 2nd proc sql have all values of eventdate as .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took a look at the log.&amp;nbsp; There are no errors and all the tables have a similar statement beneath:&lt;/P&gt;&lt;P&gt;NOTE: Table MART_TMP.PREGOUTCOMEC created, with 6361 rows and 6 columns.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 19:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421305#M27121</guid>
      <dc:creator>Dsquared</dc:creator>
      <dc:date>2017-12-14T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421325#M27123</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I re-ran adjusting the a*, b* but am getting the same result.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 19:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421325#M27123</guid>
      <dc:creator>Dsquared</dc:creator>
      <dc:date>2017-12-14T19:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421333#M27124</link>
      <description>&lt;P&gt;Then we will need example data that illustrates the issue against which we can test-run code.&lt;/P&gt;
&lt;P&gt;Please post example data as data step code.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421333#M27124</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-14T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421337#M27125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/171307"&gt;@Dsquared&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;All three of the tables created from the 2nd proc sql have all values of eventdate as .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took a look at the log.&amp;nbsp; There are no errors and all the tables have a similar statement beneath:&lt;/P&gt;
&lt;P&gt;NOTE: Table MART_TMP.PREGOUTCOMEC created, with 6361 rows and 6 columns.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Time to provide some small example data sets of mart_tmp.controlclaims and mart.codelistP, 4 or 5 records for each, that will duplicate the behavior. You only need to provide enough variables to satisfy the code. Provide them as a data step so we can recreate the problem with the data. The data step could look like:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New"&gt;data work.junk1;
   input a b;
datalines;
1 1
2 2
3 3
3 1
;
run;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;I say this because with dummy sets I build I can't recreate the problem making me suspect this is somehow data related.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Make sure you get the same behavior with your example data sets.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421337#M27125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-14T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421350#M27126</link>
      <description>&lt;P&gt;Nothing in that code is changing the value of EVENTDATE.&lt;/P&gt;
&lt;P&gt;If you have missing values then they were in the data already.&lt;/P&gt;
&lt;P&gt;Your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create table mart_tmp.ctclaims as
select a.*, b.*
from mart_tmp.controlclaims (keep=patid eventdate medcode) a
, mart_tmp.elig_denomC(keep=patid elig_start elig_end yob) b
where a.patid=b.patid
order by patid
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is reading EVENTDATE from the dataset MART_TMP.CONTROLCLAIMS.&amp;nbsp; Since you are essentially doing an inner join it should not be adding any extra observations that only come from the other dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So look in &lt;SPAN&gt;MART_TMP.CONTROLCLAIMS&lt;/SPAN&gt; for missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421350#M27126</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-12-14T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421351#M27127</link>
      <description>&lt;P&gt;Here they are.&amp;nbsp; It is longitudinal data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;CtClaims&lt;/P&gt;&lt;P&gt;data work.ctclaims;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;patid eventdate medcode&amp;nbsp;yob elig_start elig_end;&lt;BR /&gt;datalines;&lt;BR /&gt;1111 3/24/99&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;&lt;P&gt;1111&amp;nbsp;1/20/01&amp;nbsp; 34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;&lt;P&gt;1001 5/20/06&amp;nbsp;&amp;nbsp;57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1980&amp;nbsp;&amp;nbsp; 5/11/09&amp;nbsp;&amp;nbsp; 5/3/09&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CodelistP&lt;/P&gt;&lt;P&gt;data work.codelistP;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;&amp;nbsp; disease&amp;nbsp; medcode;&lt;BR /&gt;datalines;&lt;BR /&gt;pregnancy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 127&lt;/P&gt;&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 294&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421351#M27127</guid>
      <dc:creator>Dsquared</dc:creator>
      <dc:date>2017-12-14T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421363#M27129</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/171307"&gt;@Dsquared&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here they are.&amp;nbsp; It is longitudinal data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CtClaims&lt;/P&gt;
&lt;P&gt;data work.ctclaims;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;patid eventdate medcode&amp;nbsp;yob elig_start elig_end;&lt;BR /&gt;datalines;&lt;BR /&gt;1111 3/24/99&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;
&lt;P&gt;1111&amp;nbsp;1/20/01&amp;nbsp; 34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;
&lt;P&gt;1001 5/20/06&amp;nbsp;&amp;nbsp;57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1980&amp;nbsp;&amp;nbsp; 5/11/09&amp;nbsp;&amp;nbsp; 5/3/09&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CodelistP&lt;/P&gt;
&lt;P&gt;data work.codelistP;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;&amp;nbsp; disease&amp;nbsp; medcode;&lt;BR /&gt;datalines;&lt;BR /&gt;pregnancy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;
&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 127&lt;/P&gt;
&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 294&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much!!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess you did this before I corrected my post. We need an example of the &lt;FONT face="Courier New"&gt;controlclaims so that we have the INPUT data to the proc SQL to see if we get the same output.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Note that your ctlaims data step does not run correctly because you haven't specified an informat that will read dates correctly for numeric variables.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421363#M27129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-14T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: missing variable.. why?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421444#M27134</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/171307"&gt;@Dsquared&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here they are.&amp;nbsp; It is longitudinal data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CtClaims&lt;/P&gt;
&lt;P&gt;data work.ctclaims;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;patid eventdate medcode&amp;nbsp;yob elig_start elig_end;&lt;BR /&gt;datalines;&lt;BR /&gt;1111 3/24/99&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;
&lt;P&gt;1111&amp;nbsp;1/20/01&amp;nbsp; 34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1930&amp;nbsp;&amp;nbsp; 9/11/99&amp;nbsp;&amp;nbsp; 10/31/99&lt;/P&gt;
&lt;P&gt;1001 5/20/06&amp;nbsp;&amp;nbsp;57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1980&amp;nbsp;&amp;nbsp; 5/11/09&amp;nbsp;&amp;nbsp; 5/3/09&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CodelistP&lt;/P&gt;
&lt;P&gt;data work.codelistP;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input&amp;nbsp;&amp;nbsp; disease&amp;nbsp; medcode;&lt;BR /&gt;datalines;&lt;BR /&gt;pregnancy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;
&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 127&lt;/P&gt;
&lt;P&gt;pregnancy&amp;nbsp;&amp;nbsp; 294&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much!!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, it's the data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.ctclaims;
input patid eventdate medcode yob elig_start elig_end;
datalines;
1111 3/24/99  12      1930   9/11/99   10/31/99
1111 1/20/01  34       1930   9/11/99   10/31/99
1001 5/20/06  57      1980   5/11/09   5/3/09
;
run;

proc print data=work.ctclaims noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;                                         elig_
patid    eventdate    medcode     yob    start    elig_end

 1111        .           12      1930      .          .   
 1111        .           34      1930      .          .   
 1001        .           57      1980      .          .   
&lt;/PRE&gt;
&lt;P&gt;If this is just a problem with your datastep/datalines code, use the macro from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a datastep as it really is.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 07:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/missing-variable-why/m-p/421444#M27134</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-15T07:05:19Z</dc:date>
    </item>
  </channel>
</rss>

