<?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: Convert string to octal notation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668972#M200614</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 21:05:07 GMT</pubDate>
    <dc:creator>MariaD</dc:creator>
    <dc:date>2020-07-13T21:05:07Z</dc:date>
    <item>
      <title>Convert string to octal notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668870#M200555</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any simple way to convert a string to octal notation? For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;origina string: "mó test"
expected string: "m\363 test"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried to use&amp;nbsp;&lt;SPAN&gt;KPROPDATA function, but it returns in UTF or latin. I&amp;nbsp;can't find how to define octal notation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;KPROPDATA(&lt;/SPAN&gt;"&amp;amp;diretorio."&lt;SPAN&gt;,&lt;/SPAN&gt;'UESC'&lt;SPAN&gt;,&lt;/SPAN&gt;'utf8'&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 15:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668870#M200555</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-13T15:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to octal notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668948#M200592</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451" target="_blank"&gt;MariaD,&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Do you want to convert to octal the whole string (as formulated in your question) or just a specific character (as shown in your example)? Please clarify.&lt;/P&gt;
&lt;DIV class="sas-author-rank"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668948#M200592</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-07-13T19:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to octal notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668954#M200598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, just the specific character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668954#M200598</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-13T20:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to octal notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668958#M200602</link>
      <description>&lt;P&gt;You can use &lt;A href="https://go.documentation.sas.com/?docsetId=leforinforref&amp;amp;docsetTarget=n1owrjwq25kk5en1108mmah482m0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;$OCTALw. Format&lt;/A&gt; to do just that. For example, the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   c = 'ó';
   c_oct = put(c, $octal.);
   put c= / c_oct=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will produce:&lt;/P&gt;
&lt;P&gt;c=ó&lt;BR /&gt;c_oct=363&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668958#M200602</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-07-13T20:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to octal notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668972#M200614</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-string-to-octal-notation/m-p/668972#M200614</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-07-13T21:05:07Z</dc:date>
    </item>
  </channel>
</rss>

