<?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: how to avoid unintialized values log message? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688295#M209056</link>
    <description>&lt;P&gt;Depends partly on how the rest of the program is structured.&lt;/P&gt;
&lt;P&gt;One way that would work is to reference the variables in an ARRAY statement.&amp;nbsp; If they are all of the same type (or at supposed to be) then you could record as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array x test1-test3 ;
var=catx(', ' , of x[*]);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 17:15:45 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-10-01T17:15:45Z</dc:date>
    <item>
      <title>how to avoid unintialized values log message?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688292#M209054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since i am concatenating some variables that are not currently present in the current data but will be in future data extract, it is giving me&amp;nbsp; "uninitialized" log message. How would I prevent this from happening without removing the variables in my program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;program (test3 not present in current data):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var=catx(', ' , test1, test2, test3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"Note: Variable test3 is uninitialized."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688292#M209054</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2020-10-01T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid unintialized values log message?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688295#M209056</link>
      <description>&lt;P&gt;Depends partly on how the rest of the program is structured.&lt;/P&gt;
&lt;P&gt;One way that would work is to reference the variables in an ARRAY statement.&amp;nbsp; If they are all of the same type (or at supposed to be) then you could record as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array x test1-test3 ;
var=catx(', ' , of x[*]);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688295#M209056</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-10-01T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid unintialized values log message?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688296#M209057</link>
      <description>&lt;P&gt;Before you use them in formula, you should define them with their max length, for example:&lt;/P&gt;
&lt;PRE&gt;Length test1 test2 test3 $10;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-avoid-unintialized-values-log-message/m-p/688296#M209057</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-10-01T17:19:46Z</dc:date>
    </item>
  </channel>
</rss>

