<?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 select first few records to test implicit PROC SQL (corrected) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666509#M199437</link>
    <description>What's clear to you might not be as clear to newbies.&lt;BR /&gt;Why not wait and see if this post gets any likes.</description>
    <pubDate>Thu, 02 Jul 2020 00:04:21 GMT</pubDate>
    <dc:creator>kentlewan</dc:creator>
    <dc:date>2020-07-02T00:04:21Z</dc:date>
    <item>
      <title>How to select first few records to test implicit PROC SQL (corrected)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666494#M199427</link>
      <description>&lt;P&gt;I am posting a (hopefully correct) response for "&lt;SPAN&gt;How to select first few records to test the Proc SQL", which has a non-working solution, and is locked:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-the-Proc-sql/td-p/7589" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-the-Proc-sql/td-p/7589&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15057"&gt;@LAP&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/136395"&gt;@srinidelite&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137343"&gt;@SimonJF&lt;/a&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;&amp;nbsp;the solution I came up with is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Sql &lt;STRONG&gt;outobs=10&lt;/STRONG&gt;;&lt;BR /&gt;&lt;EM&gt;create table TESTRESULT as&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;select COL1, COL2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from YOURLIB.YOURTABLE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where YOURFILTERS&lt;/EM&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is no error in the SQL statement, this will return 10 records and produce &amp;amp;syscc = 4 / &amp;amp;sqlrc = 4 (warning.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to code to check SYSCC/SQLRC, if you are checking for warnings or errors.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 21:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666494#M199427</guid>
      <dc:creator>kentlewan</dc:creator>
      <dc:date>2020-07-01T21:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to select first few records to test implicit PROC SQL (corrected)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666502#M199432</link>
      <description>&lt;P&gt;Using option OUTOBS= is the chosen solution. As I see it, this post brings no value to a topic closed 12 years ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 23:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666502#M199432</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-01T23:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to select first few records to test implicit PROC SQL (corrected)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666505#M199434</link>
      <description>Not disagreeing with solution provided in 2008. However, the experts provided no sample code to allow users to copy. Unclear where OUTOBS= is supposed to go. That is why I've reposted it.</description>
      <pubDate>Wed, 01 Jul 2020 23:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666505#M199434</guid>
      <dc:creator>kentlewan</dc:creator>
      <dc:date>2020-07-01T23:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to select first few records to test implicit PROC SQL (corrected)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666508#M199436</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;gt; Unclear where OUTOBS= is supposed to go.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Really? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is first line of the chosen reply:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;you can use inobs= or outobs= option on the PROC SQL statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 01 Jul 2020 23:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666508#M199436</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-01T23:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to select first few records to test implicit PROC SQL (corrected)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666509#M199437</link>
      <description>What's clear to you might not be as clear to newbies.&lt;BR /&gt;Why not wait and see if this post gets any likes.</description>
      <pubDate>Thu, 02 Jul 2020 00:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-first-few-records-to-test-implicit-PROC-SQL/m-p/666509#M199437</guid>
      <dc:creator>kentlewan</dc:creator>
      <dc:date>2020-07-02T00:04:21Z</dc:date>
    </item>
  </channel>
</rss>

