<?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 what this statement means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698447#M213612</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have a sas code writen by somebody. i don't understand what the select 100 mean in this statement. can somebody tell me what this means. thank you.&lt;/P&gt;
&lt;P&gt;/**core medical services**/&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; t&amp;amp;year &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; providerstateid &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; stateid, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;b.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;* &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x&amp;amp;year a&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;left&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;join&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y&amp;amp;year b&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a.prid=b.prid&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; c &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;st &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;ST.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; count(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; total_clients &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; x&amp;amp;year &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;group&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; st&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;union&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; st, count(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; total_clients &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; x&amp;amp;year&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;order&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; stateid;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 17:17:07 GMT</pubDate>
    <dc:creator>juliajulia</dc:creator>
    <dc:date>2020-11-12T17:17:07Z</dc:date>
    <item>
      <title>what this statement means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698447#M213612</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have a sas code writen by somebody. i don't understand what the select 100 mean in this statement. can somebody tell me what this means. thank you.&lt;/P&gt;
&lt;P&gt;/**core medical services**/&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; t&amp;amp;year &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; providerstateid &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; stateid, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;b.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;* &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x&amp;amp;year a&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;left&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;join&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y&amp;amp;year b&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a.prid=b.prid&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; c &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;st &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;ST.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; count(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; total_clients &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; x&amp;amp;year &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;group&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; st&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;union&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; st, count(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; total_clients &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; x&amp;amp;year&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;order&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; stateid;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698447#M213612</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2020-11-12T17:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: what this statement means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698449#M213614</link>
      <description>"Select 100 as st,..." creates a numeric column called "st" with a value of 100 - in a data step it would be st = 100 ;   Basically it's just creating a a constant value&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698449#M213614</guid>
      <dc:creator>MarkDawson</dc:creator>
      <dc:date>2020-11-12T17:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: what this statement means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698450#M213615</link>
      <description>&lt;P&gt;The 100 seems to be a number greater as anything found in st, so this adds a summary row to the dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698450#M213615</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-12T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: what this statement means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698456#M213619</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16488"&gt;@juliajulia&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to add to the preceding replies: Take a look at the definition of the numeric format &lt;FONT face="courier new,courier"&gt;ST.&lt;/FONT&gt;. One would expect that&amp;nbsp;it assigns a label (such as &lt;FONT face="courier new,courier"&gt;'Overall total'&lt;/FONT&gt;) to the value 100 so that the summary row added by means of the UNION operator can be recognized as such.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698456#M213619</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-12T17:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: what this statement means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698457#M213620</link>
      <description>thanks both of you!</description>
      <pubDate>Thu, 12 Nov 2020 17:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-this-statement-means/m-p/698457#M213620</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2020-11-12T17:46:08Z</dc:date>
    </item>
  </channel>
</rss>

