<?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: Create a datapoint in one dataset for the number of observations in another dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614171#M18556</link>
    <description>Thanks Kurt, but I got an error&lt;BR /&gt;&lt;BR /&gt;56   data want&lt;BR /&gt;57   select nobs from dictionary.tables&lt;BR /&gt;ERROR: Libref 'dictionary' exceeds 8 characters.&lt;BR /&gt;58   where libname = "COMPANY" and memname = "MATCHES";&lt;BR /&gt;                   -                       -&lt;BR /&gt;                   22                      22&lt;BR /&gt;                   200                     200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.&lt;BR /&gt;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;59   run;&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Dec 2019 00:33:28 GMT</pubDate>
    <dc:creator>texasmfp</dc:creator>
    <dc:date>2019-12-28T00:33:28Z</dc:date>
    <item>
      <title>Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614169#M18554</link>
      <description>&lt;P&gt;Is there an easy way to create a dataset with one observation and one variable, where the value is the number of obs in another dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 00:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614169#M18554</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-28T00:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614170#M18555</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select nobs from dictionary.tables
where libname = "XXXXXXX" and memname = "YYYYYY";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Dec 2019 00:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614170#M18555</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-28T00:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614171#M18556</link>
      <description>Thanks Kurt, but I got an error&lt;BR /&gt;&lt;BR /&gt;56   data want&lt;BR /&gt;57   select nobs from dictionary.tables&lt;BR /&gt;ERROR: Libref 'dictionary' exceeds 8 characters.&lt;BR /&gt;58   where libname = "COMPANY" and memname = "MATCHES";&lt;BR /&gt;                   -                       -&lt;BR /&gt;                   22                      22&lt;BR /&gt;                   200                     200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.&lt;BR /&gt;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;59   run;&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Dec 2019 00:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614171#M18556</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-28T00:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614172#M18557</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; wrote an SQL query not a DATA step statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as 
select nobs 
from dictionary.tables
where libname = "XXXXXXX" and memname = "YYYYYY";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 00:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614172#M18557</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-28T00:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614173#M18558</link>
      <description>I can work with that.  Much thanks.</description>
      <pubDate>Sat, 28 Dec 2019 00:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614173#M18558</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-28T00:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a datapoint in one dataset for the number of observations in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614181#M18560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296215"&gt;@texasmfp&lt;/a&gt;&amp;nbsp; If you are comfortable using Datastep, you could use SASHELP views that basically executes the SQL query demonstrated by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the query would look something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set sashelp.vtable;
where libname = "XXXXXXX" and memname = "YYYYYY";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;SASHELP.VTABLE is a view of DICTIONARY.TABLES&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Dec 2019 01:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-datapoint-in-one-dataset-for-the-number-of-observations/m-p/614181#M18560</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-28T01:52:30Z</dc:date>
    </item>
  </channel>
</rss>

