<?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: I want to make a flag 2 lines from the last line in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621353#M19616</link>
    <description>&lt;P&gt;I have absolutely no idea of what you are asking for. &amp;nbsp; Please provide (in the form of a DATA step with actual sashelp.class data) what you want the resulting data set to look like.&amp;nbsp; We all know what the 19 observations in sashelp.class looks like, so please show the (presumably) 19 rows of new variables.&amp;nbsp; And help us understand what rules you want to implement.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 02:10:48 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-01-31T02:10:48Z</dc:date>
    <item>
      <title>I want to make a flag 2 lines from the last line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621352#M19615</link>
      <description>&lt;P&gt;Hello. I tested with sashelp.class data&lt;BR /&gt;In the process. From class last line&lt;BR /&gt;I want to make this rule YY NN YY NN.&lt;BR /&gt;Is there a good way?&lt;BR /&gt;For example, you want to create a new column N YY NN YY NN in the class dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 01:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621352#M19615</guid>
      <dc:creator>sasviyajunior</dc:creator>
      <dc:date>2020-01-31T01:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a flag 2 lines from the last line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621353#M19616</link>
      <description>&lt;P&gt;I have absolutely no idea of what you are asking for. &amp;nbsp; Please provide (in the form of a DATA step with actual sashelp.class data) what you want the resulting data set to look like.&amp;nbsp; We all know what the 19 observations in sashelp.class looks like, so please show the (presumably) 19 rows of new variables.&amp;nbsp; And help us understand what rules you want to implement.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 02:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621353#M19616</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-31T02:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a flag 2 lines from the last line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621354#M19617</link>
      <description>&lt;P&gt;I want the rules like YY, NN, YY, NN to be created as new columns by two rows from the last row.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 02:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621354#M19617</guid>
      <dc:creator>sasviyajunior</dc:creator>
      <dc:date>2020-01-31T02:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a flag 2 lines from the last line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621356#M19618</link>
      <description>&lt;P&gt;Yeah, you said that before but I'm too dense to know what you mean.&amp;nbsp; Why not make it completely apparent and show us what the 19 rows resulting from sashelp.class would look like?&amp;nbsp; Are us just saying to make one new variable, which has character values "YY" for rows 1,3,5,,...19. &amp;nbsp; And value "NN" for rows 2,4,6,8,...18?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 02:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621356#M19618</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-31T02:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a flag 2 lines from the last line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621505#M19636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296777"&gt;@sasviyajunior&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello. I tested with sashelp.class data&lt;BR /&gt;In the process. From class last line&lt;BR /&gt;I want to make this rule YY NN YY NN.&lt;BR /&gt;Is there a good way?&lt;BR /&gt;For example, you want to create a new column N YY NN YY NN in the class dataset.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are N YY NN YY NN&amp;nbsp;supposed to be variable names? Values? If values for how many variables? Of what names? If the values are YY or NN&amp;nbsp;what is the rule in determining which is which.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of executing some code only 2 records prior to the end of a given data set using SASHELP.CLASS.&lt;/P&gt;
&lt;PRE&gt;data junk;
   set sashelp.class nobs=nn;
   if _n_ = nn-2 then do;
      var1='YY';
      var2= 3;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;But I don't see a lot of utility in this approach.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 17:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-want-to-make-a-flag-2-lines-from-the-last-line/m-p/621505#M19636</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-31T17:46:29Z</dc:date>
    </item>
  </channel>
</rss>

