<?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 -  to get first row and last 5 rows in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182955#M46589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u explain this step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=_nObs;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ &amp;gt;= (_nObs - &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;4&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;I am not getting?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2014 05:21:53 GMT</pubDate>
    <dc:creator>venkatnaveen</dc:creator>
    <dc:date>2014-07-18T05:21:53Z</dc:date>
    <item>
      <title>Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182948#M46582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering for Proc SQL code to generate the report with first row and last 5 rows from 20 rows.&amp;nbsp; Let me know if it is possible to achieve in single data step instead of creating multiple datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182948#M46582</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-07-17T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182949#M46583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you can, don't know why you would want to do it this way though:&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONOTONIC() as ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SASHELP.CARS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATED ID in (1,16,17,18,19,20);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;Or if you don't know how many obs: &lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; select&amp;nbsp; NOBS&lt;BR /&gt;&amp;nbsp; into&amp;nbsp;&amp;nbsp;&amp;nbsp; :NO&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; SASHELP.VTABLE&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; LIBNAME="SASHELP" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; MEMNAME="CARS";&lt;BR /&gt;&amp;nbsp; create table WANT as&lt;BR /&gt;&amp;nbsp; select&amp;nbsp; *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONOTONIC() as ID&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; SASHELP.CARS&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; CALCULATED ID=1 or CALCULATED ID &amp;gt;= (&amp;amp;NO.-4);&lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182949#M46583</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-17T12:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182950#M46584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find below a DATA Step example.&lt;/P&gt;&lt;P&gt;The first steps creates data for validation, the second steps has the actual row selection using a subsetting IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; have;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; rowId + &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; sashelp.Class;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; want;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; have &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=_nObs;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ &amp;gt;= (_nObs - &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;4&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182950#M46584</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-07-17T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182951#M46585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/* Try this,&amp;nbsp; to get first record and 5th record from last */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table&lt;EM&gt;&lt;STRONG&gt; first_1_last5_record (drop=SL_NO)&lt;/STRONG&gt;&lt;/EM&gt; as select&lt;/P&gt;&lt;P&gt;monotonic() as SL_NO,*&amp;nbsp; from HAVE&lt;/P&gt;&lt;P&gt;having monotonic()=min(monotonic(SL_NO)) or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monotonic()=MAX(monotonic(SL_NO))-4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182951#M46585</guid>
      <dc:creator>sas_lak</dc:creator>
      <dc:date>2014-07-17T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182952#M46586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would not advice any approach using SQL for getting first and last records when you have no ordering.&lt;BR /&gt;SQL is designed for getting records out of a DBMS without being aware of any physical ordering. &lt;BR /&gt;By that the multi-threading (parallel processing) is allowed. The use of monotonic as hidden feature is for the same reason not reliable and should be avoided.&lt;/P&gt;&lt;P&gt;There are more design differences with SQL and SAS-datastep to be aware off. One of them is Null value and the SAS missing. These are having a different logical background. Often being confused as equal.&amp;nbsp; &lt;/P&gt;&lt;P&gt;See: &lt;A href="http://en.wikipedia.org/wiki/Null_(SQL"&gt;http://en.wikipedia.org/wiki/Null_(SQL&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182952#M46586</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-17T12:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182953#M46587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, that's why I couldn't understand why he would want such an ad-hoc sample as obs xyz.&amp;nbsp; Doesn't make sense in any system.&amp;nbsp; Better to use some categorization and subset that way.&amp;nbsp; Its also not necessarily reproducible if needed to be re-run or validated.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 13:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182953#M46587</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-17T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182954#M46588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to generate an index variable like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data class;
 set sashelp.class;
 n+1;
run;

proc sql;
select count(*) into : n from class;
select * from class where n in (&amp;nbsp; 1 %eval(&amp;amp;n-4) : &amp;amp;n&amp;nbsp; ) ;
quit;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 14:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182954#M46588</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-17T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182955#M46589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u explain this step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nobs&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=_nObs;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ &amp;gt;= (_nObs - &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;4&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;I am not getting?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 05:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182955#M46589</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-18T05:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182956#M46590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During compilation of the DATA step the number of observations is read from the input data set and stored in the variable _nObs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During execution for each iteration of the DATA step loop _n_ is increased by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF without a THEN is called a Subsetting IF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 05:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182956#M46590</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-07-18T05:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182957#M46591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that reply.&lt;/P&gt;&lt;P&gt;Now clarified.&lt;/P&gt;&lt;P&gt;I m&amp;nbsp; a beginner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 06:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182957#M46591</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-18T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182958#M46592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using features that are limited to sas datasets, here is an sql approach&lt;/P&gt;&lt;P&gt;%let table = sashelp.class;&lt;/P&gt;&lt;P&gt;Proc sql noprint ;&lt;/P&gt;&lt;P&gt;Select ( nobs-4) into :last_part from dictionary.tables &lt;/P&gt;&lt;P&gt;where libname = "%upcase(%scan(&amp;amp;table,1,.))"&lt;/P&gt;&lt;P&gt; And memname = "%upcase(%scan(&amp;amp;table,-1))"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Create table subset as&lt;/P&gt;&lt;P&gt;select * from &amp;amp;table( obs=1)&lt;/P&gt;&lt;P&gt;union all&lt;/P&gt;&lt;P&gt;select * from &amp;amp;table(firstobs=&amp;amp;last_part)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;Limited to SAS datasets because probably only these support the firstobs=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 21:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182958#M46592</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-18T21:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182959#M46593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the obs and nobs features are very dedicated to SAS datasets. Then that is very dedicated solution not applicable with external RDBMS tables. &lt;BR /&gt;"How does color 9 smell."&amp;nbsp; If the question is not really a good one my preference is to ask why and go for the issue behind that. It is not always appreciated to do that.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 04:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182959#M46593</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-19T04:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL -  to get first row and last 5 rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182960#M46594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a poster requests sql without specifying which database is the target I presume SAS.&lt;/P&gt;&lt;P&gt;I belive my answer is as valid as the question. (pardon my very smug answer for what looks more like a teacher's test than any operational difficulty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jul 2014 06:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SQL-to-get-first-row-and-last-5-rows/m-p/182960#M46594</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-19T06:17:38Z</dc:date>
    </item>
  </channel>
</rss>

