<?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 Find Number OBS in XPT file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/659020#M197450</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname ppp xport "c:\temp\cccc.xpt";

data ppp.class; 
 set sashelp.class;
run;

data _null_;
set ppp.class nobs=obs;
put obs=;
stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jun 2020 15:19:34 GMT</pubDate>
    <dc:creator>smantha</dc:creator>
    <dc:date>2020-06-15T15:19:34Z</dc:date>
    <item>
      <title>How to Find Number OBS in XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658650#M197375</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;For my scenario i need to find out is exist XPT file have how many observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Proc contents for out put meta data set NOBS variable values are showing missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to&amp;nbsp; find out number of observation in XPT file with out converting in to SAS data set&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 08:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658650#M197375</guid>
      <dc:creator>raja777pharma</dc:creator>
      <dc:date>2020-06-15T08:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find Number OBS in XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658931#M197403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asume that the XPT file was made with the xport engine. I guess the only way is to count the number of observations since the descriptor shows a missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname ppp xport "c:\temp\cccc.xpt";

data ppp.class; 
 set sashelp.class;
run;

proc sql;
 select count (*) from ppp.class;
 quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 11:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658931#M197403</guid>
      <dc:creator>MCoopmans</dc:creator>
      <dc:date>2020-06-15T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find Number OBS in XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658961#M197421</link>
      <description>&lt;P&gt;You will have to count them since the SAS v5 export format does not have any location to store the number of observations.&lt;/P&gt;
&lt;P&gt;Either use PROC SQL or a data step with the END= option on the SET statement.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 12:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/658961#M197421</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-15T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find Number OBS in XPT file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/659020#M197450</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname ppp xport "c:\temp\cccc.xpt";

data ppp.class; 
 set sashelp.class;
run;

data _null_;
set ppp.class nobs=obs;
put obs=;
stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2020 15:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Find-Number-OBS-in-XPT-file/m-p/659020#M197450</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-15T15:19:34Z</dc:date>
    </item>
  </channel>
</rss>

