<?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: Removing uninitialized variable note from log file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759893#M240235</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/312665"&gt;@bharath86&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried using a &lt;FONT face="courier new,courier"&gt;by&lt;/FONT&gt; statement with the variable usubjid after the &lt;FONT face="courier new,courier"&gt;set&lt;/FONT&gt; statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 08:39:23 GMT</pubDate>
    <dc:creator>Amir</dc:creator>
    <dc:date>2021-08-06T08:39:23Z</dc:date>
    <item>
      <title>Removing uninitialized variable note from log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759892#M240234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code and a note from the log file while executing this code.&lt;/P&gt;
&lt;P&gt;Why does SAS think first.usubjid is a varible by itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise how to get rid of this note from the log file or an alternate to this code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;230        data mh_fin;
231        set mh mh_test4;
232        
233        	if first.usubjid then MHSEQ=1;
234        	else MHSEQ+1;
235        
236        run;


NOTE: Variable first.usubjid is uninitialized.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759892#M240234</guid>
      <dc:creator>bharath86</dc:creator>
      <dc:date>2021-08-06T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing uninitialized variable note from log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759893#M240235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/312665"&gt;@bharath86&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried using a &lt;FONT face="courier new,courier"&gt;by&lt;/FONT&gt; statement with the variable usubjid after the &lt;FONT face="courier new,courier"&gt;set&lt;/FONT&gt; statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759893#M240235</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2021-08-06T08:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing uninitialized variable note from log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759894#M240236</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for raising that by statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually revised the code and changed the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mh_fin;
set mh mh_test4;
by studyid;
	if first.studyid then MHSEQ=1;
	else MHSEQ+1;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-uninitialized-variable-note-from-log-file/m-p/759894#M240236</guid>
      <dc:creator>bharath86</dc:creator>
      <dc:date>2021-08-06T08:46:53Z</dc:date>
    </item>
  </channel>
</rss>

