<?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: SAS Function to  to identify  orders ending with 01 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561476#M157192</link>
    <description>&lt;P&gt;Let's suppose the order number is in a character variable named ORDER_NUM. Then in a SAS data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if reverse(trim(order_num))=:'10';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 16:48:13 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-05-24T16:48:13Z</dc:date>
    <item>
      <title>SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561474#M157190</link>
      <description>&lt;P&gt;I would lik eto know whaich sas function to use to get all orders ending with 01. Please reply&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561474#M157190</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2019-05-24T16:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561475#M157191</link>
      <description>&lt;P&gt;Please provide some context, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is the data character or numeric?&lt;/LI&gt;&lt;LI&gt;Will there ever be decimal numbers?&lt;/LI&gt;&lt;LI&gt;If decimal, should the decimal be portion be ignored or used?&lt;/LI&gt;&lt;LI&gt;Please provide some data in the form of a data step using &lt;FONT face="courier new,courier"&gt;datalines&lt;/FONT&gt; showing before and after the function is applied.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561475#M157191</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-05-24T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561476#M157192</link>
      <description>&lt;P&gt;Let's suppose the order number is in a character variable named ORDER_NUM. Then in a SAS data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if reverse(trim(order_num))=:'10';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561476#M157192</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-24T16:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561477#M157193</link>
      <description>&lt;P&gt;it is character data&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;585452101&lt;BR /&gt;571629201&lt;BR /&gt;585175701&lt;BR /&gt;24968566&lt;BR /&gt;579876301&lt;BR /&gt;575507505&lt;BR /&gt;184126254&lt;BR /&gt;184021353&lt;BR /&gt;577099102&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561477#M157193</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2019-05-24T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561478#M157194</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if substr(var,length(var)-1,2)='01'; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 16:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561478#M157194</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-24T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561479#M157195</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input var $20.;
cards;
585452101
571629201
585175701
24968566
579876301
575507505
184126254
184021353
577099102
;

data want;
set have;
if substr(var,length(var)-1,2)='01';
run;

/*or indentify/flag*/

data want;
set have;
if substr(var,length(var)-1,2)='01' then flag=1;
run;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 16:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561479#M157195</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-24T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function to  to identify  orders ending with 01</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561482#M157198</link>
      <description>&lt;P&gt;Thank you. You could try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   input order_num $10.;
   datalines;
585452101
571629201
585175701
24968566
579876301
575507505
184126254
184021353
577099102
;

data want;
   set have;

   if left(reverse(order_num)) =: '10';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 17:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-to-to-identify-orders-ending-with-01/m-p/561482#M157198</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-05-24T17:04:06Z</dc:date>
    </item>
  </channel>
</rss>

