<?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: SAS Base Question in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508829#M6460</link>
    <description>&lt;P&gt;I don't see answer (a) anywhere, do you mean the answer that is first under the question? If so, that is not correct because array variables are not temporary.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 17:24:10 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-10-30T17:24:10Z</dc:date>
    <item>
      <title>SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508825#M6459</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder why we cannot select answer (a) for the following question?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;13.) What is true about array variables?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;They are temporary variables created in datastep.&lt;/LI&gt;&lt;LI&gt;They are output in dataset.&lt;/LI&gt;&lt;LI&gt;Can contain numeric and character values at same time.&lt;/LI&gt;&lt;LI&gt;Cannot be used in assignment statement.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Answer: &lt;/STRONG&gt;b&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508825#M6459</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-10-30T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508829#M6460</link>
      <description>&lt;P&gt;I don't see answer (a) anywhere, do you mean the answer that is first under the question? If so, that is not correct because array variables are not temporary.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508829#M6460</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-30T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508835#M6461</link>
      <description>&lt;P&gt;So I guess "array" is temporary but the array variables are not.&lt;/P&gt;&lt;P&gt;Was&amp;nbsp;this what you meant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508835#M6461</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-10-30T17:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508836#M6462</link>
      <description>&lt;P&gt;The variables are not temporary.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508836#M6462</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-30T17:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508842#M6463</link>
      <description>&lt;P&gt;If you declare an array the variables are cxreated in the output data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not temporary, unless explicitly specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
array a(20);
run;

proc contents data=want;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188695"&gt;@jc3992&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So I guess "array" is temporary but the array variables are not.&lt;/P&gt;
&lt;P&gt;Was&amp;nbsp;this what you meant?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508842#M6463</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-30T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508907#M6464</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188695"&gt;@jc3992&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder why we cannot select answer (a) for the following question?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;13.) What is true about array variables?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;They are temporary variables created in datastep.&lt;/LI&gt;
&lt;LI&gt;They are output in dataset.&lt;/LI&gt;
&lt;LI&gt;Can contain numeric and character values at same time.&lt;/LI&gt;
&lt;LI&gt;Cannot be used in assignment statement.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Answer: &lt;/STRONG&gt;b&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Log result of pretty minimal program:&lt;/P&gt;
&lt;PRE&gt;2598  data work.example;
2599     array a{5};
2600  run;

NOTE: The data set WORK.EXAMPLE has 1 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;The first note following the data step shows that the output data set has 5 variables. Exercise for the interested reader is what are the variable names and why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to create temporary array&amp;nbsp;variables though:&lt;/P&gt;
&lt;PRE&gt;2601  data work.example;
2602     array a{5} _temporary_ (1,2,3,4,5);
2603  run;

NOTE: The data set WORK.EXAMPLE has 1 observations and 0 variables.

&lt;/PRE&gt;
&lt;P&gt;Of course a data set with no variables is not terribly interesting for most purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Base-Question/m-p/508907#M6464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-30T19:41:50Z</dc:date>
    </item>
  </channel>
</rss>

