<?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 How to find nobs of a temporary dataset using dictionary.tables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-nobs-of-a-temporary-dataset-using-dictionary-tables/m-p/403244#M66877</link>
    <description>&lt;P&gt;I am using SAS 9.4 on windows. We know that we can use dictionary.tables to query permanent datasets like sashelp.cars. For example -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select nobs into :totobs separated by ' ' from dictionary.tables
where libname = 'SASHELP' and memname = 'CARS';
quit;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a new dataset which is a temporary one, can I use similar code ? Are temporary datasets saved in similar fashion ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data row1col1;
    a =12;
    output;
run;


proc sql noprint;
select nobs into :cntobs from dictionary.tables
where libname = 'WORK' and memname = 'row1col1';
quit;

%put num_records = &amp;amp;cntobs.;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above code is running without any error but the log says NOTE: No rows were selected. Is there a way to use this code or I am making a basic mistake and the approach is wrong ?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 16:33:29 GMT</pubDate>
    <dc:creator>shihabur</dc:creator>
    <dc:date>2017-10-11T16:33:29Z</dc:date>
    <item>
      <title>How to find nobs of a temporary dataset using dictionary.tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-nobs-of-a-temporary-dataset-using-dictionary-tables/m-p/403244#M66877</link>
      <description>&lt;P&gt;I am using SAS 9.4 on windows. We know that we can use dictionary.tables to query permanent datasets like sashelp.cars. For example -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select nobs into :totobs separated by ' ' from dictionary.tables
where libname = 'SASHELP' and memname = 'CARS';
quit;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a new dataset which is a temporary one, can I use similar code ? Are temporary datasets saved in similar fashion ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data row1col1;
    a =12;
    output;
run;


proc sql noprint;
select nobs into :cntobs from dictionary.tables
where libname = 'WORK' and memname = 'row1col1';
quit;

%put num_records = &amp;amp;cntobs.;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above code is running without any error but the log says NOTE: No rows were selected. Is there a way to use this code or I am making a basic mistake and the approach is wrong ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-nobs-of-a-temporary-dataset-using-dictionary-tables/m-p/403244#M66877</guid>
      <dc:creator>shihabur</dc:creator>
      <dc:date>2017-10-11T16:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to find nobs of a temporary dataset using dictionary.tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-nobs-of-a-temporary-dataset-using-dictionary-tables/m-p/403248#M66878</link>
      <description>&lt;P&gt;memname is CAPS in dictionary table, so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;....and memname = 'ROW1COL1';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-nobs-of-a-temporary-dataset-using-dictionary-tables/m-p/403248#M66878</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2017-10-11T16:42:15Z</dc:date>
    </item>
  </channel>
</rss>

