<?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: out obs help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118021#M32544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want the printed output to only have a subset of the data.&lt;/P&gt;&lt;P&gt;Why not use the NOPRINT (or ODS CLOSE) and instead use proc freq to write a dataset and then print the dataset with an OBS= dataset option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 May 2012 18:34:09 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-05-19T18:34:09Z</dc:date>
    <item>
      <title>out obs help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118017#M32540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;If I only want 10 observations to output, where in the code would I place that. If I do not do observations I end up with 4996 pages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ODS&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;RTF&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;FILE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'C:\documents and settings\tmill29\my documents\my sas files\9.2\readmin\readm2.RTF'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;FREQ&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = ReAdm.CHI &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = DATA; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; COMPARISON;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;WEIGHT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; COUNT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;TABLES&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; SVRTY_LVL_CD*WHO*ADMISSION/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;CMH&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;EXPECTED&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OUTEXPECT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;EXACT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OUTPUT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = ReAdm.Final &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;CMH&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ODS&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;RTF&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;CLOSE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 22:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118017#M32540</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2012-05-16T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: out obs help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118018#M32541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With SAS procedures, I believe you can only control the number of observations being read in (using OBS= with the option statement or as a dataset option), not the number being output.&amp;nbsp; The only exception I know of is PROC SQL where you can use the OUTOBS= option.&lt;/P&gt;&lt;P&gt;If you want to restrict the number to test the code, then set OBS=&amp;nbsp; as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;PROC&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;FREQ&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; = ReAdm.CHI (OBS=100)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 09:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118018#M32541</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-05-17T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: out obs help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118019#M32542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keith, that's 100 observations input, which doesn't seem to answer the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consider the original question unclear, as there is no relationship that I know of between observations and pages, yet you speak of both as if they are interchangeable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you mean to say that the output data set to have 10 observations, in which case you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT OUT = readm.final(obs=10) or cmh;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 13:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118019#M32542</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-05-17T13:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: out obs help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118020#M32543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PaigeMiller,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OBS= dataset option can only be used against the input dataset, it has no effect when applied against an output dataset.&amp;nbsp; I stated that I don't think it is possible to achieve the desired result, what @tmcrouse didn't say was why there is a requirement to have only 10 output observations.&amp;nbsp; I merely stated that if data checking was the purpose then this could be achieved by limiting the number of input observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 13:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118020#M32543</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-05-17T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: out obs help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118021#M32544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want the printed output to only have a subset of the data.&lt;/P&gt;&lt;P&gt;Why not use the NOPRINT (or ODS CLOSE) and instead use proc freq to write a dataset and then print the dataset with an OBS= dataset option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 18:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/out-obs-help/m-p/118021#M32544</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-05-19T18:34:09Z</dc:date>
    </item>
  </channel>
</rss>

