<?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: Error in first. and last. statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140568#M37579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very simply because "duplicate" is not in the input data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 09:24:39 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-10-24T09:24:39Z</dc:date>
    <item>
      <title>Error in first. and last. statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140567#M37578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #000080; background-color: white; font-family: Courier New;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; ttt (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt;=value period);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; testing;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; region;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; first.region &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; last.region &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; ttt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: white; font-family: Courier New;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt; =duplicate;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;&lt;SPAN style="color: #000080; background-color: white; font-family: Courier New;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: white; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error message that variable duplicate is uninitialized. PLease advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140567#M37578</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2014-10-24T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in first. and last. statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140568#M37579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very simply because "duplicate" is not in the input data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140568#M37579</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-24T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in first. and last. statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140569#M37580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not due to FIRST. or LAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the data set names in the Output like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.3999996185303px; font-family: 'Courier New'; color: #000080; background-color: white;"&gt;&lt;STRONG style="font-style: inherit; font-size: 14.3999996185303px; font-family: inherit;"&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.3999996185303px; font-family: 'Courier New'; color: #000000; background-color: white;"&gt; ttt (&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.3999996185303px; font-family: 'Courier New'; color: #0000ff; background-color: white;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.3999996185303px; font-family: 'Courier New'; color: #000000; background-color: white;"&gt;=value period) duplicate;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140569#M37580</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2014-10-24T09:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in first. and last. statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140570#M37581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And drop the erroneous equal sign &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 10:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140570#M37581</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-24T10:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in first. and last. statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140571#M37582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more thing - as you mentioned duplicate in&amp;nbsp; the data step statement, would it create a new dataset which will capture other values excluding the first and the last obs of the group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 19:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-in-first-and-last-statement/m-p/140571#M37582</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2014-10-24T19:23:56Z</dc:date>
    </item>
  </channel>
</rss>

