<?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: Indicate the first record in a data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155961#M30497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paige.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 17:20:53 GMT</pubDate>
    <dc:creator>Paul_NYS</dc:creator>
    <dc:date>2014-03-25T17:20:53Z</dc:date>
    <item>
      <title>Indicate the first record in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155958#M30494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In processing a data step, is there a way to indicate the first record in an overall data set? I know using 'first' works to indicate the first grouping of a certain combination of variables, but I am wondering about the entire data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155958#M30494</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-03-25T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Indicate the first record in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155959#M30495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The predefined variable _n_ will have the value 1 for the first record in a data set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155959#M30495</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-03-25T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Indicate the first record in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155960#M30496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your datastep involves reading a single dataset then testing &lt;STRONG&gt;_N_=1&lt;/STRONG&gt; will signal the first datastep iteration. Otherwise, using the &lt;STRONG&gt;INDSNAME=myVariable&lt;/STRONG&gt; option in the SET statement will give you a dataset name to compare with the previous iteration (&lt;STRONG&gt;IF myVariable ne lag(myVariable)&lt;/STRONG&gt;) to detect the fiirst observation from each new dataset, including the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155960#M30496</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-25T16:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Indicate the first record in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155961#M30497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paige.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155961#M30497</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-03-25T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Indicate the first record in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155962#M30498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG. I have one data set, but that is good to know for the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Indicate-the-first-record-in-a-data-set/m-p/155962#M30498</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-03-25T17:21:25Z</dc:date>
    </item>
  </channel>
</rss>

