<?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 SAS Viewer shows less records than the SAS file has. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844806#M20619</link>
    <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;&lt;P&gt;We are having an odd issue. One of the formats exported is SAS.&lt;/P&gt;&lt;P&gt;SAS Viewer will show displaying records 1-279 of 305 but the 26 records are never to be found.&lt;/P&gt;&lt;P&gt;As the data table is growing, this missing set of records is always there in the count but not viewable.&lt;BR /&gt;It is not due to paging, and we went through the data and could not find anything special about those.&lt;BR /&gt;&lt;BR /&gt;Here is the specific example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count_issue.png" style="width: 282px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77386i67B026A579085128/image-size/large?v=v2&amp;amp;px=999" role="button" title="count_issue.png" alt="count_issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what, that 26 difference will remain. And those records are missing from the SAS file. But oddly, it says the number of records is 305.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any idea what could be the issue here please?&lt;BR /&gt;&lt;BR /&gt;All the Best,&lt;BR /&gt;András&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 12:12:56 GMT</pubDate>
    <dc:creator>AndrasJonas</dc:creator>
    <dc:date>2022-11-17T12:12:56Z</dc:date>
    <item>
      <title>SAS Viewer shows less records than the SAS file has.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844806#M20619</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;&lt;P&gt;We are having an odd issue. One of the formats exported is SAS.&lt;/P&gt;&lt;P&gt;SAS Viewer will show displaying records 1-279 of 305 but the 26 records are never to be found.&lt;/P&gt;&lt;P&gt;As the data table is growing, this missing set of records is always there in the count but not viewable.&lt;BR /&gt;It is not due to paging, and we went through the data and could not find anything special about those.&lt;BR /&gt;&lt;BR /&gt;Here is the specific example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count_issue.png" style="width: 282px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77386i67B026A579085128/image-size/large?v=v2&amp;amp;px=999" role="button" title="count_issue.png" alt="count_issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what, that 26 difference will remain. And those records are missing from the SAS file. But oddly, it says the number of records is 305.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any idea what could be the issue here please?&lt;BR /&gt;&lt;BR /&gt;All the Best,&lt;BR /&gt;András&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844806#M20619</guid>
      <dc:creator>AndrasJonas</dc:creator>
      <dc:date>2022-11-17T12:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viewer shows less records than the SAS file has.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844809#M20620</link>
      <description>&lt;P&gt;Perhaps they are deleted records?&amp;nbsp; In datasets, deleted observations are simply marked as such, they are not physically removed unless the dataset is rebuilt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can test if this is the case by compiling this macro:&amp;nbsp;&amp;nbsp;&lt;A href="https://core.sasjs.io/mf__getattrn_8sas_source.html" target="_blank"&gt;https://core.sasjs.io/mf__getattrn_8sas_source.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And running the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put All Observations=%mf_getattrn(YOURDATASET,NOBS);
%put Non-Deleted (Logical) Observations=%mf_getattrn(YOURDATASET,NLOBS);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844809#M20620</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-11-17T12:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viewer shows less records than the SAS file has.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844969#M20629</link>
      <description>&lt;P&gt;Try running a simple DATA step to recreate the dataset.&amp;nbsp; Test first by writing to a new dataset. If that fixes your problem overwrite the original dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MyLib.new;
  set MyLib.old;
run;

data MyLib.old;
  set MyLib.old;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2022 20:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Viewer-shows-less-records-than-the-SAS-file-has/m-p/844969#M20629</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-17T20:39:13Z</dc:date>
    </item>
  </channel>
</rss>

