<?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: search long hyphen (−) in the program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89821#M25656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The character printed has more to do with the font than anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is your sample that shows searching for both a long dash or a short dash.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The results show that only the short dash appears in the text, but that may have been messed up by the editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* test2.sas */&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;&amp;nbsp; informat string $150.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input id string &amp;amp;;&lt;BR /&gt;pos_long = index(string, '96'x);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* long dash */&lt;BR /&gt;pos_shrt = index(string,'2D'x);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* short dash */&lt;BR /&gt;put string= / string $hex100. /;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* display hex of first 50 characters in log */&lt;BR /&gt;&amp;nbsp; cards;&lt;BR /&gt;1 patient’s hemoglobin was less than or equal to 11 (units not provided). On an unknown date in May 2013&lt;BR /&gt;2 A former school cricket-coach was jailed for 15 months on Thursday for &lt;A href="mailto:normal@range"&gt;normal@range&lt;/A&gt;.&lt;BR /&gt;3 deleted stuff (5-6 c/sec) on right frontal derivations corresponding to the lesion site&lt;BR /&gt;4 The neurological examination at'admission showe'd a stuporous state with partial cluster seizures&lt;BR /&gt;5 The Singapore Armed Forces (S-A-F) will conduct military exercises in Seletar&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 14:20:55 GMT</pubDate>
    <dc:creator>jwsquillace</dc:creator>
    <dc:date>2013-05-30T14:20:55Z</dc:date>
    <item>
      <title>search long hyphen (−) in the program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89818#M25653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to find single quote (') and long hyphen :smileyminus: in a CLOB data.&lt;/P&gt;&lt;P&gt;I used index function but its not working. &lt;/P&gt;&lt;P&gt;When I am trying to keep&amp;nbsp; long hyphen in the sas editor to start programming, it is automatically changed into small hyphen and the program capture record with small hyphen. &lt;/P&gt;&lt;P&gt;Can anyone help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat string $100.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input id string &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 patient’s hemoglobin was less than or equal to 11 (units not provided). On an unknown date in May 2013&lt;/P&gt;&lt;P&gt;2 A former school cricket-coach was jailed for 15 months on Thursday for normal@range.&lt;/P&gt;&lt;P&gt;3 A 19 derivation EEG demonstrated theta activity (5−6 c/sec) on right frontal derivations corresponding to the lesion site&lt;/P&gt;&lt;P&gt;4 The neurological examination at'admission showe'd a stuporous state with partial cluster seizures&lt;/P&gt;&lt;P&gt;5 &lt;SPAN style="color: #000000; font-family: arial, sans-serif; background-color: #ffffff;"&gt;The Singapore Armed Forces (S−A−F) will conduct military exercises in Seletar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be Id number 1, 3 and 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 08:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89818#M25653</guid>
      <dc:creator>Abraham</dc:creator>
      <dc:date>2013-05-30T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: search long hyphen (−) in the program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89819#M25654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Long hypen&amp;nbsp;&amp;nbsp; or 'em dash '&amp;nbsp; are special chcarcters ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to MS-word and replace&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; &lt;STRONG style="color: #ff9900;"&gt;with&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; —&amp;nbsp;&amp;nbsp;&amp;nbsp; /* i have pasted&amp;nbsp; long hypen from ms word*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....go with following code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set abc;&lt;/P&gt;&lt;P&gt;if find&lt;STRONG style="color: #ff9900;"&gt;(trim(string),'—')&lt;/STRONG&gt; then _id=id;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* i have pasted&amp;nbsp; long hypen from ms word*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Y ALLU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 10:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89819#M25654</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2013-05-30T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: search long hyphen (−) in the program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89820#M25655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a snippet of code I wrote the other day to help someone with a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; your_dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; length new_category $5 category1-category3 $7;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; category1 = cat(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'0 '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, byte(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #00ae00; background: white;"&gt;150&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;' 5'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&amp;nbsp; * USE 150 for an EN (short) DASH and 151 for an EM (long) DASH;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; category2 = cat(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'6 '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, byte(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #00ae00; background: white;"&gt;150&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;' 10'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; category3 = cat(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'11 '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, byte(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #00ae00; background: white;"&gt;150&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;' 20'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Years_Nephrology_ = category1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; new_category=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'0-5'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Years_Nephrology_ = category2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; new_category=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'6-10'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Years_Nephrology_ = category3 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; new_category=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'11-20'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; new_category=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #c00000; background: white;"&gt;'&amp;gt; 20'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;run&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;proc&lt;/SPAN&gt; &lt;STRONG style="color: purple; background: #EEEEEE; font-size: 10.0pt; font-family: 'Courier New';"&gt;freq&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; new_category;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;run&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 14:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89820#M25655</guid>
      <dc:creator>Robert</dc:creator>
      <dc:date>2013-05-30T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: search long hyphen (−) in the program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89821#M25656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The character printed has more to do with the font than anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is your sample that shows searching for both a long dash or a short dash.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The results show that only the short dash appears in the text, but that may have been messed up by the editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* test2.sas */&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;&amp;nbsp; informat string $150.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input id string &amp;amp;;&lt;BR /&gt;pos_long = index(string, '96'x);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* long dash */&lt;BR /&gt;pos_shrt = index(string,'2D'x);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* short dash */&lt;BR /&gt;put string= / string $hex100. /;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* display hex of first 50 characters in log */&lt;BR /&gt;&amp;nbsp; cards;&lt;BR /&gt;1 patient’s hemoglobin was less than or equal to 11 (units not provided). On an unknown date in May 2013&lt;BR /&gt;2 A former school cricket-coach was jailed for 15 months on Thursday for &lt;A href="mailto:normal@range"&gt;normal@range&lt;/A&gt;.&lt;BR /&gt;3 deleted stuff (5-6 c/sec) on right frontal derivations corresponding to the lesion site&lt;BR /&gt;4 The neurological examination at'admission showe'd a stuporous state with partial cluster seizures&lt;BR /&gt;5 The Singapore Armed Forces (S-A-F) will conduct military exercises in Seletar&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 14:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/search-long-hyphen-in-the-program/m-p/89821#M25656</guid>
      <dc:creator>jwsquillace</dc:creator>
      <dc:date>2013-05-30T14:20:55Z</dc:date>
    </item>
  </channel>
</rss>

