<?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 Can anyone kindly please explain about this syntax as what it does? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807085#M318117</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have this:&lt;/P&gt;
&lt;PRE&gt;proc sql;
select counts (*) into: avariableName from mytable;
quit;
&lt;/PRE&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blue &amp;amp; blue&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 02:42:04 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2022-04-11T02:42:04Z</dc:date>
    <item>
      <title>Can anyone kindly please explain about this syntax as what it does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807085#M318117</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have this:&lt;/P&gt;
&lt;PRE&gt;proc sql;
select counts (*) into: avariableName from mytable;
quit;
&lt;/PRE&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blue &amp;amp; blue&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 02:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807085#M318117</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2022-04-11T02:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone kindly please explain about this syntax as what it does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807088#M318120</link>
      <description>&lt;P&gt;Search on the web for URL that contain the three words "sas sql into".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first link the appeared for my search was&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/sqlproc/63043/HTML/default/viewer.htm#n1tupenuhmu1j0n19d3curl9igt4.htm" target="_self"&gt;SAS(R) 9.3 SQL Procedure User's Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 03:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807088#M318120</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-04-11T03:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone kindly please explain about this syntax as what it does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807091#M318122</link>
      <description>&lt;P&gt;Actually I suspect it does nothing except throw an error because there is no function COUNTS.&lt;/P&gt;
&lt;P&gt;Using a data set I know exists:&lt;/P&gt;
&lt;PRE&gt;109  proc sql;
110  select counts (*) into: avariableName
111  from sashelp.class;
ERROR: * used for a function other than COUNT.
ERROR: Function COUNTS could not be located.
112  quit;
&lt;/PRE&gt;
&lt;P&gt;Using the function Count, that does exist:&lt;/P&gt;
&lt;PRE&gt;113  proc sql;
114  select count (*) into: avariableName
115  from sashelp.class;
116  quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


117
118  %put The macro variable Avariablename=&amp;amp;avariablename.;
The macro variable Avariablename=      19
&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have this:&lt;/P&gt;
&lt;PRE&gt;proc sql;
select counts (*) into: avariableName from mytable;
quit;
&lt;/PRE&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blue &amp;amp; blue&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Count(*) basically counts observations&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 04:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807091#M318122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-11T04:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone kindly please explain about this syntax as what it does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807109#M318130</link>
      <description>&lt;P&gt;Using COUNT(*) causes SQL to read the whole dataset; it is much better (faster) to query the dataset metadata:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select nobs (*) into: avariableName
from dictionary.tables
where libname = "WORK" and memname = "MYTABLE";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2022 08:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807109#M318130</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-11T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone kindly please explain about this syntax as what it does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807177#M318171</link>
      <description>&lt;P&gt;What part don't you understand?&lt;/P&gt;
&lt;P&gt;PROC SQL?&lt;/P&gt;
&lt;P&gt;SELECT?&lt;/P&gt;
&lt;P&gt;COUNT() function?&lt;BR /&gt;COUNT(*)?&lt;/P&gt;
&lt;P&gt;INTO?&lt;/P&gt;
&lt;P&gt;:?&lt;/P&gt;
&lt;P&gt;FROM?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What do you think it does from the context of the program where it was used?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-anyone-kindly-please-explain-about-this-syntax-as-what-it/m-p/807177#M318171</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-11T14:41:36Z</dc:date>
    </item>
  </channel>
</rss>

