<?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 WARNING: Partial value initialization of the array (Revisited) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40166#M8140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc POWER also has number lists.&amp;nbsp; Perhaps this can be used to expand a list of values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 id="statug.power.powdetailsnumberlists" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; font-size: 16px; margin-top: 1.4em; padding-top: 0.7em;"&gt;Number-Lists&lt;/H3&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;A &lt;EM&gt;number-list&lt;/EM&gt; can be one of two things: a series of one or more numbers expressed in the form of one or more DOLISTs, or a missing value indicator (.).&lt;/P&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;The DOLIST format is the same as in the DATA step language. For example, for the one-sample&amp;nbsp; test you can specify four scenarios (30, 50, 70, and 100) for a total sample size in any of the following ways.&lt;/P&gt;&lt;PRE style="padding-top: 1.4em; padding-left: 12px; font-style: normal; font-size: 12px; line-height: 1.25em; font-family: monospace; text-align: left; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; NTOTAL = 30 50 70 100&amp;nbsp;&amp;nbsp; NTOTAL = 30 to 70 by 20 100&lt;/PRE&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;A missing value identifies a parameter as the result parameter; it is valid only with options representing parameters you can solve for in a given analysis. For example, you can request a solution for NTOTAL:&lt;/P&gt;&lt;PRE style="padding-top: 1.4em; padding-left: 12px; font-style: normal; font-size: 12px; line-height: 1.25em; font-family: monospace; text-align: left; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; NTOTAL = .&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 17:16:11 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-11-02T17:16:11Z</dc:date>
    <item>
      <title>WARNING: Partial value initialization of the array (Revisited)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40164#M8138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm reposting my previous hijacked thread on this subject. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; I am NOT interested in doing ANYTHING that SAS already knows how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have asked this before I've been thinking about it for a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I want to collect user input in the form of an array initialization.&amp;nbsp; I want to use SAS to parse or expand the initialization e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;152 %let parm = (4*40 3*(3*7 8 9 10));&lt;/P&gt;&lt;P&gt;153 data _null_;&lt;/P&gt;&lt;P&gt;154 array parm[30];&lt;/P&gt;&lt;P&gt;155 retain parm &amp;amp;parm;&lt;/P&gt;&lt;P&gt;WARNING: Partial value initialization of the array parm.&lt;/P&gt;&lt;P&gt;156 put (parm&lt;LI&gt;) (/=);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;157 run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parm1=40&lt;/P&gt;&lt;P&gt;parm2=40&lt;/P&gt;&lt;P&gt;parm3=40&lt;/P&gt;&lt;P&gt;parm4=40&lt;/P&gt;&lt;P&gt;parm5=7&lt;/P&gt;&lt;P&gt;parm6=7&lt;/P&gt;&lt;P&gt;parm7=7&lt;/P&gt;&lt;P&gt;parm8=8&lt;/P&gt;&lt;P&gt;parm9=9&lt;/P&gt;&lt;P&gt;parm10=10&lt;/P&gt;&lt;P&gt;parm11=7&lt;/P&gt;&lt;P&gt;parm12=7&lt;/P&gt;&lt;P&gt;parm13=7&lt;/P&gt;&lt;P&gt;parm14=8&lt;/P&gt;&lt;P&gt;parm15=9&lt;/P&gt;&lt;P&gt;parm16=10&lt;/P&gt;&lt;P&gt;parm17=7&lt;/P&gt;&lt;P&gt;parm18=7&lt;/P&gt;&lt;P&gt;parm19=7&lt;/P&gt;&lt;P&gt;parm20=8&lt;/P&gt;&lt;P&gt;parm21=9&lt;/P&gt;&lt;P&gt;parm22=10&lt;/P&gt;&lt;P&gt;parm23=.&lt;/P&gt;&lt;P&gt;parm24=.&lt;/P&gt;&lt;P&gt;parm25=.&lt;/P&gt;&lt;P&gt;parm26=.&lt;/P&gt;&lt;P&gt;parm27=.&lt;/P&gt;&lt;P&gt;parm28=.&lt;/P&gt;&lt;P&gt;parm29=.&lt;/P&gt;&lt;P&gt;parm30=.&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;As you can see SAS knows just what to do and give me exactly what I want.&amp;nbsp; I just don't want the warning.&amp;nbsp; I even works for character strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;204 %let parm = (4*'hello kitty' 3*(3*('hello yourself')));&lt;/P&gt;&lt;P&gt;205 data _null_;&lt;/P&gt;&lt;P&gt;206 array parm[30] $32;&lt;/P&gt;&lt;P&gt;207 retain parm &amp;amp;parm;&lt;/P&gt;&lt;P&gt;WARNING: Partial value initialization of the array parm.&lt;/P&gt;&lt;P&gt;208 put (parm&lt;LI&gt;) (/=);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;209 run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parm1=hello kitty&lt;/P&gt;&lt;P&gt;parm2=hello kitty&lt;/P&gt;&lt;P&gt;parm3=hello kitty&lt;/P&gt;&lt;P&gt;parm4=hello kitty&lt;/P&gt;&lt;P&gt;parm5=hello yourself&lt;/P&gt;&lt;P&gt;parm6=hello yourself&lt;/P&gt;&lt;P&gt;parm7=hello yourself&lt;/P&gt;&lt;P&gt;parm8=hello yourself&lt;/P&gt;&lt;P&gt;parm9=hello yourself&lt;/P&gt;&lt;P&gt;parm10=hello yourself&lt;/P&gt;&lt;P&gt;parm11=hello yourself&lt;/P&gt;&lt;P&gt;parm12=hello yourself&lt;/P&gt;&lt;P&gt;parm13=hello yourself&lt;/P&gt;&lt;P&gt;parm14=&lt;/P&gt;&lt;P&gt;parm15=&lt;/P&gt;&lt;P&gt;parm16=&lt;/P&gt;&lt;P&gt;parm17=&lt;/P&gt;&lt;P&gt;parm18=&lt;/P&gt;&lt;P&gt;parm19=&lt;/P&gt;&lt;P&gt;parm20=&lt;/P&gt;&lt;P&gt;parm21=&lt;/P&gt;&lt;P&gt;parm22=&lt;/P&gt;&lt;P&gt;parm23=&lt;/P&gt;&lt;P&gt;parm24=&lt;/P&gt;&lt;P&gt;parm25=&lt;/P&gt;&lt;P&gt;parm26=&lt;/P&gt;&lt;P&gt;parm27=&lt;/P&gt;&lt;P&gt;parm28=&lt;/P&gt;&lt;P&gt;parm29=&lt;/P&gt;&lt;P&gt;parm30=&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I can see to get rid of the warning it to know what the number of elements the "initialization list" is going to produce.&amp;nbsp; But I ain't smart enough for that and why should I need to cause SAS knows already.&amp;nbsp; I just don't want to be warned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps another feature in SAS accepts the same "initialization list" syntax that doesn't produce the WARNING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 15:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40164#M8138</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-11-02T15:55:47Z</dc:date>
    </item>
    <item>
      <title>WARNING: Partial value initialization of the array (Revisited)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40165#M8139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you look at the PARMS statement for GLIMMIX, VARIOGRAM etc?&amp;nbsp; The syntax is a little different but if there is anyway to get it to generate the values and output them into a dataset then you could pull those values into a space delimited values to use for the ARRAY statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40165#M8139</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-02T17:05:30Z</dc:date>
    </item>
    <item>
      <title>WARNING: Partial value initialization of the array (Revisited)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40166#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc POWER also has number lists.&amp;nbsp; Perhaps this can be used to expand a list of values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 id="statug.power.powdetailsnumberlists" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; font-size: 16px; margin-top: 1.4em; padding-top: 0.7em;"&gt;Number-Lists&lt;/H3&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;A &lt;EM&gt;number-list&lt;/EM&gt; can be one of two things: a series of one or more numbers expressed in the form of one or more DOLISTs, or a missing value indicator (.).&lt;/P&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;The DOLIST format is the same as in the DATA step language. For example, for the one-sample&amp;nbsp; test you can specify four scenarios (30, 50, 70, and 100) for a total sample size in any of the following ways.&lt;/P&gt;&lt;PRE style="padding-top: 1.4em; padding-left: 12px; font-style: normal; font-size: 12px; line-height: 1.25em; font-family: monospace; text-align: left; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; NTOTAL = 30 50 70 100&amp;nbsp;&amp;nbsp; NTOTAL = 30 to 70 by 20 100&lt;/PRE&gt;&lt;P style="margin-top: 1.4em; font-style: normal; font-size: 13px; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; text-align: left; color: #000000;"&gt;A missing value identifies a parameter as the result parameter; it is valid only with options representing parameters you can solve for in a given analysis. For example, you can request a solution for NTOTAL:&lt;/P&gt;&lt;PRE style="padding-top: 1.4em; padding-left: 12px; font-style: normal; font-size: 12px; line-height: 1.25em; font-family: monospace; text-align: left; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; NTOTAL = .&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Partial-value-initialization-of-the-array-Revisited/m-p/40166#M8140</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-02T17:16:11Z</dc:date>
    </item>
  </channel>
</rss>

