<?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: Dealing with paths that contain French symbols in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755275#M238337</link>
    <description>&lt;P&gt;Directory exists, code runs on the same local machine.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavelr_0-1626773294311.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61404i5BA3973E4703825B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_0-1626773294311.png" alt="pavelr_0-1626773294311.png" /&gt;&lt;/span&gt;&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="pavelr_1-1626773327313.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61405iB3D911DCA9D18D33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_1-1626773327313.png" alt="pavelr_1-1626773327313.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 09:29:40 GMT</pubDate>
    <dc:creator>pavelr</dc:creator>
    <dc:date>2021-07-20T09:29:40Z</dc:date>
    <item>
      <title>Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755261#M238330</link>
      <description>&lt;P&gt;How do I deal with paths that have French symbols?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to run:&lt;/P&gt;
&lt;P&gt;libname test 'C:\Tést';&lt;/P&gt;
&lt;P&gt;SAS says that this library does not exist (though this folder exists).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to use FILENAME function:&lt;/P&gt;
&lt;P&gt;rc=filename('fname', 'C:\Tést\test.sas7bdat');&lt;/P&gt;
&lt;P&gt;it does not work either.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755261#M238330</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T08:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755264#M238333</link>
      <description>&lt;P&gt;You probably used the wrong character. Copy and past the path name from the explorer.&lt;/P&gt;
&lt;P&gt;Note that&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Tést&amp;nbsp;&lt;/FONT&gt; is not a French word.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 09:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755264#M238333</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T09:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755265#M238334</link>
      <description>&lt;P&gt;This a copy-paste:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname tes 'C:\Tést';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe&amp;nbsp;Tést is not a French word, but&amp;nbsp;é is a French symbol. I need to work with folders with such symbols.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 09:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755265#M238334</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755269#M238336</link>
      <description>&lt;P&gt;Type&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_1-1626772359429.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61401i994D444626CE40B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisNZ_1-1626772359429.png" alt="ChrisNZ_1-1626772359429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in a command prompt window to show us that the path exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS says it doesn't exist, then it doesn't (or the userid running SAS doesn't have the authorisation to access).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility is that the path is local and the code runs on a server. Did you make this confusion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 09:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755269#M238336</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T09:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755275#M238337</link>
      <description>&lt;P&gt;Directory exists, code runs on the same local machine.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavelr_0-1626773294311.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61404i5BA3973E4703825B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_0-1626773294311.png" alt="pavelr_0-1626773294311.png" /&gt;&lt;/span&gt;&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="pavelr_1-1626773327313.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61405iB3D911DCA9D18D33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_1-1626773327313.png" alt="pavelr_1-1626773327313.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 09:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755275#M238337</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T09:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755306#M238350</link>
      <description>&lt;P&gt;It may be that one part of your software (SAS or Windows) works with codepage Windows-1252, while the other (Windows or SAS) is set to UTF encoding. The character will be encoded differently in both settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line: it is NEVER a good idea to have anything but the 26 letters (upper- and lowercase), digits, and the underline symbol in directory or file names. NEVER. Rectify that, and you'll have a much brighter future.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 11:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755306#M238350</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-20T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755308#M238351</link>
      <description>&lt;P&gt;Please try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename DIR pipe 'dir c:\T* /b';
data _null_;
  infile DIR;
  input;
  if prxmatch('/T.*st',_INFILE_);
  putlog _INFILE_;
  call execute(catt('libname TEST "',_INFILE_,'";'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and show us the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755308#M238351</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T12:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755314#M238353</link>
      <description>&lt;P&gt;Thanks. It was not my idea to name folders with such symbols, I just have to work with this case.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755314#M238353</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755321#M238356</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;It was not my idea to name folders with such symbols, I just have to work with this case.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;That's bad practice as you can see now.&lt;/P&gt;
&lt;P&gt;A likely scenario is that the folder exists in Linux and uses UTF8 encoding. You see it in windows with a translated name using wlatin encoding.&lt;/P&gt;
&lt;P&gt;You take this Windows name and try to use it on the server and of course it fails.&lt;/P&gt;
&lt;P&gt;SAS sometimes does the translation since you have a Windows client and a Linux server, but it depends on the environment you use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755321#M238356</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T12:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755324#M238357</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavelr_0-1626783409259.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61413iA7F27ECA4B97474E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_0-1626783409259.png" alt="pavelr_0-1626783409259.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I add "C:\" to the libname statement in the catt function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavelr_1-1626783516465.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61414i7CB20E1E1B00A3CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavelr_1-1626783516465.png" alt="pavelr_1-1626783516465.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755324#M238357</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T12:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755326#M238358</link>
      <description>&lt;P&gt;I agree that it is not a good practice to use such symbols as well as spaces, dashes, etc. for folder and file names. Thank you for taking your time to look into it.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755326#M238358</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-07-20T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with paths that contain French symbols</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755327#M238359</link>
      <description>&lt;P&gt;Ah yes of course, thanks for adding C:\&amp;nbsp; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is there no accent there?&lt;/P&gt;
&lt;P&gt;Ask the people who maintain this folder what this is all about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;STRONG&gt;&lt;EM&gt;e&lt;/EM&gt;&lt;/STRONG&gt; is not what is seems. Something is very wrong with the way this path was typed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should definitely ask that the folder name be retyped (renamed).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As additional information, you could replace the &lt;FONT face="courier new,courier"&gt;putlog&lt;/FONT&gt; with&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;putlog _INFILE_ $hex64.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;but really, just cut this nonsense lose.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-paths-that-contain-French-symbols/m-p/755327#M238359</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T12:26:17Z</dc:date>
    </item>
  </channel>
</rss>

