<?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: Need to avoid the Un initialized note while working with condition though if the variable missin in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625318#M184300</link>
    <description>&lt;P&gt;Explain how you use the variables when they exist.&amp;nbsp; If they don't exist is the scenario simply the same as when they exist but all values are missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you achieve the same result if you define TYPE1-TYPE3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   length type1-type3 $1;
   call missing(of type:);&lt;BR /&gt;   set ...;
   &amp;lt;the rest&amp;gt;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 15:47:26 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2020-02-17T15:47:26Z</dc:date>
    <item>
      <title>Need to avoid the Un initialized note while working with condition though if the variable missinng</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625278#M184284</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set and usually it will have variables Type1 Type2 Type3, but unfortunately this time there is no variables like that, so now if i am working on the below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if Type1 = "1" then label= "Type1";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else label= "NA";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f Type1 = "2" then label= "Type2";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else label= "NA";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;etc....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so this time I am getting un&amp;nbsp;initialized&amp;nbsp; note, is there any way to avoid this? Need and needs this to run in future also with out any changes if the variable added next delivery by the data team.&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;</description>
      <pubDate>Mon, 17 Feb 2020 14:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625278#M184284</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2020-02-17T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid the Un initialized note while working with condition though if the variable missin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625293#M184292</link>
      <description>&lt;P&gt;Please post the log you got using the {i} icon and clarify which variable get the uninitialized note&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625293#M184292</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-02-17T14:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid the Un initialized note while working with condition though if the variable missin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625296#M184293</link>
      <description>&lt;PRE&gt;NOTE: VAriable Type1 is uninitialized&lt;BR /&gt;NOTE: VAriable Type2 is uninitialized&lt;BR /&gt;NOTE: VAriable Type3 is uninitialized&lt;/PRE&gt;&lt;P&gt;The variables&amp;nbsp;Type1&amp;nbsp;&amp;nbsp;Type2&amp;nbsp;Type3 is getting this note , due to this time these are not available&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 15:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625296#M184293</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2020-02-17T15:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid the Un initialized note while working with condition though if the variable missin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625318#M184300</link>
      <description>&lt;P&gt;Explain how you use the variables when they exist.&amp;nbsp; If they don't exist is the scenario simply the same as when they exist but all values are missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you achieve the same result if you define TYPE1-TYPE3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   length type1-type3 $1;
   call missing(of type:);&lt;BR /&gt;   set ...;
   &amp;lt;the rest&amp;gt;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 15:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625318#M184300</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-02-17T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid the Un initialized note while working with condition though if the variable missin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625429#M184328</link>
      <description>&lt;P&gt;Why do you check variables that don't exist in the data set? What meaning does it have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 20:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625429#M184328</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-02-17T20:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to avoid the Un initialized note while working with condition though if the variable missin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625506#M184372</link>
      <description>&lt;P&gt;Why do you want to avoid the note? The note is raising a valid point: the data expected by the program is not there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you always want the variables to be there,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;'s recommendation is the way to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But don't be surprised if this absent data causes issues later on and the issue goes undetected.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 20:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-avoid-the-Un-initialized-note-while-working-with/m-p/625506#M184372</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-12T20:54:17Z</dc:date>
    </item>
  </channel>
</rss>

