<?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 How to select the immediate next record to baseline record, in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880619#M347947</link>
    <description>How to select the immediate next record to baseline record, in sas</description>
    <pubDate>Wed, 14 Jun 2023 11:48:18 GMT</pubDate>
    <dc:creator>Deepthi999</dc:creator>
    <dc:date>2023-06-14T11:48:18Z</dc:date>
    <item>
      <title>How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880619#M347947</link>
      <description>How to select the immediate next record to baseline record, in sas</description>
      <pubDate>Wed, 14 Jun 2023 11:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880619#M347947</guid>
      <dc:creator>Deepthi999</dc:creator>
      <dc:date>2023-06-14T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880625#M347952</link>
      <description>&lt;P&gt;Can you provide a small example of a data set that you are working with?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880625#M347952</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-14T12:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880628#M347954</link>
      <description>&lt;P&gt;Also please, describe in detail what you want to do&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880628#M347954</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2023-06-14T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880682#M347972</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443239"&gt;@wowspremiumshop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure, here's an example of a small data set that I'm working with:&lt;/P&gt;
&lt;P&gt;Name, Age, Gender&lt;BR /&gt;John, 25, Male&lt;BR /&gt;Emily, 32, Female&lt;BR /&gt;Michael, 45, Male&lt;BR /&gt;Sarah, 28, Female&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a simple data set with four individuals, including their names, ages, and genders. It can be used for various purposes, such as analyzing demographic trends or conducting statistical analysis.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRIKE&gt;Your question says "How to select the immediate next record to baseline record". So which of the above is the BASELINE and which the "immediate next record"? &lt;/STRIKE&gt; Redacted as I thought this data was posted by the person asking the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example you show has no "next record" so is not representative of baseline/following data. So doesn't help in the discussion (yet).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880682#M347972</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-14T15:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880706#M347974</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443239"&gt;@wowspremiumshop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure, here's an example of a small data set that I'm working with:&lt;/P&gt;
&lt;P&gt;Name, Age, Gender&lt;BR /&gt;John, 25, Male&lt;BR /&gt;Emily, 32, Female&lt;BR /&gt;Michael, 45, Male&lt;BR /&gt;Sarah, 28, Female&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a simple data set with four individuals, including their names, ages, and genders. It can be used for various purposes, such as analyzing demographic trends or conducting statistical analysis.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your question says "How to select the immediate next record to baseline record". So which of the above is the BASELINE and which the "immediate next record"?&lt;/P&gt;
&lt;P&gt;My normal understanding says the example you just showed has no "next record" so is not representative of baseline/following data.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is confusing. The example data set provided was not from the OP, who has not yet responded. Instead,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is responding to someone else,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443239"&gt;@wowspremiumshop&lt;/a&gt;&amp;nbsp;, who has jumped into this thread and has not provided anything useful in this discussion (yet), and who I suspect is a spammer (especially if you look at his profile).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880706#M347974</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-14T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880712#M347978</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;This is confusing. The example data set provided was not from the OP, who has not yet responded. Instead,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is responding to someone else,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443239"&gt;@wowspremiumshop&lt;/a&gt;&amp;nbsp;, who has jumped into this thread and has not provided anything useful in this discussion (yet).&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Good catch. I'm modifying my post.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880712#M347978</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-14T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the immediate next record to baseline record, in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880776#M348005</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443912"&gt;@Deepthi999&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How to select the immediate next record to baseline record, in sas&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Perhaps if you numbered the observations then it would be easier to find the NEXT record.&lt;/P&gt;
&lt;P&gt;For example you might number with the "baseline" record as one and every other record increasing from there.&lt;/P&gt;
&lt;P&gt;Perhaps have any records that come before the baseline be numbered as zero (or missing).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have ;
  by subject ;
  if first.subject then record=.;
  if visit='BASELINE' then record=1;
  else if record then record+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can select the NEXT record by taking those with RECORD=2.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 19:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-the-immediate-next-record-to-baseline-record-in/m-p/880776#M348005</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-14T19:02:25Z</dc:date>
    </item>
  </channel>
</rss>

