<?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: count into in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801617#M315490</link>
    <description>&lt;P&gt;also is the output data set same as the source data set&amp;nbsp;&amp;amp;Port._dev? here didnt start with data and dataset name so where are the data saved?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 08:15:32 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2022-03-11T08:15:32Z</dc:date>
    <item>
      <title>count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801616#M315489</link>
      <description>&lt;PRE&gt;PROC SQL noprint;
SELECT DISTINCT
count(*) into :total_Dev
FROM &amp;amp;POrt._dev;
QUIT;&lt;/PRE&gt;
&lt;P&gt;what does count(*) into :total_Dev means?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801616#M315489</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-03-11T08:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801617#M315490</link>
      <description>&lt;P&gt;also is the output data set same as the source data set&amp;nbsp;&amp;amp;Port._dev? here didnt start with data and dataset name so where are the data saved?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801617#M315490</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-03-11T08:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801618#M315491</link>
      <description>&lt;P&gt;Look up the document and read it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/sqlproc/n1tupenuhmu1j0n19d3curl9igt4.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/sqlproc/n1tupenuhmu1j0n19d3curl9igt4.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801618#M315491</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-03-11T08:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801619#M315492</link>
      <description>&lt;P&gt;There is no output dataset because there is no "create table". Only results are available.&lt;BR /&gt;It is necessary that learning basic sql syntax before&amp;nbsp;using proc sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801619#M315492</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-03-11T08:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801636#M315501</link>
      <description>&lt;P&gt;INTO &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;: &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;, that colon is extremely important, means the results get placed into one or more macro variables whose names follow the colon depending on actual syntax.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Suggestion: From the level of understanding you show with your questions you should &lt;STRONG&gt;not&lt;/STRONG&gt; be working with macro variables or code at all yet. The SAS macro language is used to create code elements. If you do not know our understand those elements use of the macro language will cause problems, confusion and very likely data corruption and/or unstable SAS sessions.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Macro language will involve lots of % functions and statements and macro variable names that start with &amp;amp;. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 11:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801636#M315501</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-11T11:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801647#M315507</link>
      <description>&lt;P&gt;The SQL summary function counts the number of non-missing values in its argument. * denotes all columns/variables in the dataset, so you get a count of all observations where at least one column is not missing.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 12:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801647#M315507</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-11T12:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801666#M315517</link>
      <description>&lt;P&gt;Minor correction: COUNT(&lt;EM&gt;variable&lt;/EM&gt;) returns the number of observations with non-missing values of &lt;EM&gt;variable&lt;/EM&gt;, but &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/sqlproc/n123fsko39j44pn16zlt087e1m2h.htm#p0x2zwtg8wf5spn1kxn794olcn01" target="_blank" rel="noopener"&gt;COUNT(*)&lt;/A&gt;&amp;nbsp;returns the number of observations regardless of missing values.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801666#M315517</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-03-11T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801675#M315520</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;"&lt;STRONG&gt;what does count(*) into :total_Dev means&lt;/STRONG&gt; "&lt;BR /&gt;&lt;/SPAN&gt;It means create a macro variable total_Dev that has the total number of rows in the table or dataset.&lt;/P&gt;
&lt;P&gt;As you are using Select distinct, the macro variable total_Dev will have the count of distinct observations in the table.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801675#M315520</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-11T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: count into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801693#M315526</link>
      <description>&lt;P&gt;It's &lt;FONT face="courier new,courier"&gt;DISTINCT count(*)&lt;/FONT&gt;&amp;nbsp;-- not&amp;nbsp;&lt;FONT face="courier new,courier"&gt;count(distinct &lt;EM&gt;sql-expression&lt;/EM&gt;)&lt;/FONT&gt;. Since &lt;FONT face="courier new,courier"&gt;count(*)&lt;/FONT&gt; returns a single number in this case (as there is no GROUP BY clause), the &lt;FONT face="courier new,courier"&gt;DISTINCT&lt;/FONT&gt; keyword is redundant. The &lt;FONT face="courier new,courier"&gt;TRIMMED&lt;/FONT&gt;&amp;nbsp; keyword (...&amp;nbsp;&lt;FONT face="courier new,courier"&gt;into :total_Dev &lt;STRONG&gt;trimmed&lt;/STRONG&gt;&lt;/FONT&gt;) would make more sense to avoid leading blanks in macro variable &lt;FONT face="courier new,courier"&gt;total_Dev&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 16:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-into/m-p/801693#M315526</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-03-11T16:05:29Z</dc:date>
    </item>
  </channel>
</rss>

