<?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: Proc SQL and OUTOBS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-and-OUTOBS/m-p/72125#M20878</link>
    <description>&lt;P&gt;if you change the 'view' to 'table', it will contains only 1 OBS.&lt;BR /&gt; So let's assume, the data in a view will be generated only when/during you open it. it stored the query for how it will be created, but will &lt;STRONG&gt;not keep&lt;/STRONG&gt; the option for 'outobs=1', which is a Proc SQL option, but 'create view' statement.&lt;BR /&gt; &lt;BR /&gt; you may also try this way:&lt;BR /&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
 create view test1 as
   select * from datasetname (obs=1);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Jan 2018 13:50:32 GMT</pubDate>
    <dc:creator>SUN59338</dc:creator>
    <dc:date>2018-01-12T13:50:32Z</dc:date>
    <item>
      <title>Proc SQL and OUTOBS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-and-OUTOBS/m-p/72124#M20877</link>
      <description>&lt;P&gt;Anybody have any idea why this code is NOT returning just one observation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql outobs = 1;
create view test1 as
select
orig.unit_pk,
orig.service_cat_desc,
orig.so_pk,
min(orig.sub_prod_pckg_pk) as pk
from
conx.subscriber_services as orig
where
orig.so_pk is not null and
orig.unit_pk = 54 and
orig.service_cat_desc = 'Video'
group by
orig.unit_pk,
orig.service_cat_desc,
orig.so_pk
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt; I'm pretty sure I've got the outobs option set properly.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 13:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-and-OUTOBS/m-p/72124#M20877</guid>
      <dc:creator>StephenOverton</dc:creator>
      <dc:date>2018-01-12T13:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL and OUTOBS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-and-OUTOBS/m-p/72125#M20878</link>
      <description>&lt;P&gt;if you change the 'view' to 'table', it will contains only 1 OBS.&lt;BR /&gt; So let's assume, the data in a view will be generated only when/during you open it. it stored the query for how it will be created, but will &lt;STRONG&gt;not keep&lt;/STRONG&gt; the option for 'outobs=1', which is a Proc SQL option, but 'create view' statement.&lt;BR /&gt; &lt;BR /&gt; you may also try this way:&lt;BR /&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
 create view test1 as
   select * from datasetname (obs=1);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 13:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-and-OUTOBS/m-p/72125#M20878</guid>
      <dc:creator>SUN59338</dc:creator>
      <dc:date>2018-01-12T13:50:32Z</dc:date>
    </item>
  </channel>
</rss>

