<?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: How to force order of nums and 2-bytes utf string? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647085#M193620</link>
    <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote in my reply that using the 'FD'x byte works with the Hebrew encoding and not in UTF8 encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67461"&gt;@arielbud&lt;/a&gt;&amp;nbsp;found the equivalent of the 'FD'x byte in Unicode and posted it later.&lt;/P&gt;
&lt;P&gt;If you use UTF8 use Ariel's code. If you use Hebrew encoding use my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this clarifies this issue for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eyal&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 13:16:43 GMT</pubDate>
    <dc:creator>EyalGonen</dc:creator>
    <dc:date>2020-05-12T13:16:43Z</dc:date>
    <item>
      <title>How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/645598#M193014</link>
      <description>&lt;P&gt;I have read Eyal Gonen's article about converting sas date into Hebrew date&lt;/P&gt;
&lt;P&gt;and encountered an issue forcing order of text.&lt;/P&gt;
&lt;P&gt;I would like to get order as yyyy-mmm-dd but all combinations result into one of two:&lt;/P&gt;
&lt;P&gt;at left are numbers and on right the month name:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
  y='1946';  m='מאי'; d='28'; 
  ymd = catx('-',y,m,d); 
  ydm = catx('-',y,d,m); 
   
  myd = catx('-',m,y,d); 
  mdy = catx('-',m,d,y); 
   
  dmy = catx('-',d,m,y); 
  dym = catx('-',d,y,m); 
   
  put ymd= ydm= myd= mdy= dmy= dym=; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the result is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ymd=1946-מאי-28 ydm=1946-28-מאי myd=מאי-1946-28 mdy=מאי-28-1946 dmy=28-מאי-1946 dym=28-1946-מאי&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm using SAS UE with Windows-10.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:15:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/645598#M193014</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-06T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/645604#M193016</link>
      <description>&lt;P&gt;I know there were formats to display in logical or visual order of Hebrew text.&lt;BR /&gt;Is it available under SAS UE? and what are the exact format names?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/645604#M193016</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-06T14:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647044#M193604</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not tried this (yet) with a UTF8 encoding SAS session but with a standard Hebrew encoding here is what you can do to make this work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem you see is only a visual thing. SAS stores the data correctly but the display is wrong. The FD hex forces Windows to form a logical separation of the sub-texts.&lt;/P&gt;
&lt;P&gt;I think you need to post these kind of questions in the *new* SAS Users in Israel group as this is Hebrew specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_; &lt;BR /&gt;y='1946'; m='מאי'; d='28'; &lt;BR /&gt;ymd = catt(y,'-','FD'x,m,'-','FD'x,d); &lt;BR /&gt;&lt;BR /&gt;put ymd=;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EyalGonen_0-1589282589731.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39334i3680D1A91E03539A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EyalGonen_0-1589282589731.png" alt="EyalGonen_0-1589282589731.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 11:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647044#M193604</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2020-05-12T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647063#M193609</link>
      <description>&lt;P&gt;Because it SAS University Edition and uses UTF , please try instead DF the&amp;nbsp;e2808e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;y='1946'; m='מאי'; d='28';&lt;BR /&gt;ymd = catt(y,'-','e2808e'x,m,'-','e2808e'x,d);&lt;/P&gt;
&lt;P&gt;put ymd=;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 11:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647063#M193609</guid>
      <dc:creator>arielbud</dc:creator>
      <dc:date>2020-05-12T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647070#M193613</link>
      <description>&lt;P&gt;data _null_;&lt;BR /&gt;y='1946'; m='מאי'; d='28';&lt;BR /&gt;separator='e2808e'x|| '-';&lt;BR /&gt;ymd = catx(separator,y,m,d);&lt;/P&gt;
&lt;P&gt;put ymd=;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647070#M193613</guid>
      <dc:creator>arielbud</dc:creator>
      <dc:date>2020-05-12T12:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647083#M193618</link>
      <description>&lt;P&gt;I have tried the 'FD'x separator as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;         ymd = catt(y,'-','FD'x,m,'FD'x,'-',d);
         put ymd=;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the result is&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;ymd=1946-�מאי�-28&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 13:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647083#M193618</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-12T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to force order of nums and 2-bytes utf string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647085#M193620</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote in my reply that using the 'FD'x byte works with the Hebrew encoding and not in UTF8 encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67461"&gt;@arielbud&lt;/a&gt;&amp;nbsp;found the equivalent of the 'FD'x byte in Unicode and posted it later.&lt;/P&gt;
&lt;P&gt;If you use UTF8 use Ariel's code. If you use Hebrew encoding use my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this clarifies this issue for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eyal&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 13:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-force-order-of-nums-and-2-bytes-utf-string/m-p/647085#M193620</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2020-05-12T13:16:43Z</dc:date>
    </item>
  </channel>
</rss>

