<?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: How to use %synfunc option to count all of the variables? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368422#M64969</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let nvar=%sysfunc(attrn(%sysfunc(open(sashelp.cars)),nvar));
%put &amp;amp;nvar ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Jun 2017 18:34:41 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-06-19T18:34:41Z</dc:date>
    <item>
      <title>How to use %synfunc option to count all of the variables?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368411#M64968</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone let me know if the %synfunc option to count the total of all the variables?&amp;nbsp; I know the ATTRC and ATTRN are list below.&amp;nbsp; Is there another option contain both of them?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P align="left"&gt;ATTRC - Returns the value of character attributes of a data set.&lt;/P&gt;&lt;P align="left"&gt;ATTRN - Returns the value of numeric attributes of a data set.&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;And I got the codes list below, I assume it only count thetotal numberic variables below.&amp;nbsp; Please correct me if I am wrong.&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; cnt=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(attrn(&amp;amp;dsid,nvars));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 18:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368411#M64968</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-06-19T18:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use %synfunc option to count all of the variables?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368422#M64969</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let nvar=%sysfunc(attrn(%sysfunc(open(sashelp.cars)),nvar));
%put &amp;amp;nvar ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Jun 2017 18:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368422#M64969</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-06-19T18:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use %synfunc option to count all of the variables?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368425#M64970</link>
      <description>&lt;P&gt;The nvar attritute with the attrn functions provides the number of all variable, regardless of whether they are character or numeric. Thee attrc function provides a different set of attributes (see:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000147794.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000147794.htm&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 18:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-synfunc-option-to-count-all-of-the-variables/m-p/368425#M64970</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-19T18:39:34Z</dc:date>
    </item>
  </channel>
</rss>

