<?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: Do not resolve the &amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943668#M369833</link>
    <description>&lt;P&gt;Please show your full code and log, it can be just a small example reproducing the problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%NRSTR() should work, but there are situations where a symbol hidden by %NRSTR can be automatically un-hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a simple test, and it worked fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=Q:\Junk\%nrstr(foo&amp;amp;bar.txt) ;

filename foo "&amp;amp;path" ;

data _null_ ;
  infile foo ;
  input ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log is:&lt;/P&gt;
&lt;PRE&gt;1    %let path=Q:\Junk\%nrstr(foo&amp;amp;bar.txt) ;
2
3    filename foo "&amp;amp;path" ;
4
5    data _null_ ;
6      infile foo ;
7      input ;
8    run ;

NOTE: The infile FOO is:
      Filename=Q:\Junk\foo&amp;amp;bar.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=48238,
      Last Modified=06Sep2024:15:51:56,
      Create Time=06Sep2024:15:50:38

NOTE: 1950 records were read from the infile FOO.
      The minimum record length was 0.
      The maximum record length was 146.
&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Sep 2024 15:54:53 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2024-09-12T15:54:53Z</dc:date>
    <item>
      <title>Do not resolve the &amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943645#M369820</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a quite simple question (... i think).&lt;/P&gt;&lt;P&gt;(probably i am a litte bit rust ? :D)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a path name that's look like :&amp;nbsp; %let path=&amp;amp;root./chemin/toto &amp;amp; titi/data.txt;&lt;/P&gt;&lt;P&gt;...and i don't want SAS to resolve the second &amp;amp; , the one of toto &amp;amp; titi, because that's the real path name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea ? %str, %superq...&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;&amp;nbsp;&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;</description>
      <pubDate>Thu, 12 Sep 2024 14:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943645#M369820</guid>
      <dc:creator>blast</dc:creator>
      <dc:date>2024-09-12T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943649#M369823</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=&amp;amp;root./chemin/toto %nrstr(&amp;amp;) titi/data.txt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943649#M369823</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-09-12T14:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943656#M369824</link>
      <description>&lt;P&gt;it put en error &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943656#M369824</guid>
      <dc:creator>blast</dc:creator>
      <dc:date>2024-09-12T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943657#M369825</link>
      <description>&lt;P&gt;Show us the code you used. Show us the LOG for this code.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943657#M369825</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-09-12T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943659#M369826</link>
      <description>&lt;P&gt;Having an ampersand (which has special meaning for UNIX systems) in a file or directory name is not good (and I am being&amp;nbsp;&lt;STRONG&gt;extremely polite&lt;/STRONG&gt; here!)&lt;/P&gt;
&lt;P&gt;In naming stuff in your filesystem, allow only letters, digits, underlines and dots. No blanks or other special characters.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943659#M369826</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-12T15:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943660#M369827</link>
      <description>i totally agree with you Kurt.&lt;BR /&gt;thank you for being so polite.&lt;BR /&gt;unlucky Sometimes, you're not the one who choose such directory names &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943660#M369827</guid>
      <dc:creator>blast</dc:creator>
      <dc:date>2024-09-12T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943662#M369828</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blast_0-1726154233244.png" style="width: 848px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100259i15167F7FD73841AB/image-dimensions/848x159?v=v2" width="848" height="159" role="button" title="blast_0-1726154233244.png" alt="blast_0-1726154233244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943662#M369828</guid>
      <dc:creator>blast</dc:creator>
      <dc:date>2024-09-12T15:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943665#M369830</link>
      <description>&lt;P&gt;Code and logs should be provided as text and not as screen captures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to see enough of the code to know how it is used.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943665#M369830</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-09-12T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943666#M369831</link>
      <description>&lt;P&gt;Do not edit results. The code you show for the path cannot generate the shown result because it does not have the word "General".&lt;/P&gt;
&lt;P&gt;Also you have apparently removed where that macro variable is actually used.&amp;nbsp; That is part of the code that should be included and the complete log where the macro variable is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code and log results should be pasted into text boxes opened on the forum with the &amp;lt;/&amp;gt; icon that appears above the message windows. We have no idea what software you may be using to create pictures and what artifacts it might insert into the image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestion:&lt;/P&gt;
&lt;P&gt;Run this code:&lt;/P&gt;
&lt;PRE&gt;%let root=C:\Users\chemin;

%let fic_OneDrive=&amp;amp;root.\%nrstr(toto &amp;amp;titi);

%put fic_OneDrive resolves to: &amp;amp;fic_OneDrive.;&lt;/PRE&gt;
&lt;P&gt;Copy the result text from the log and paste into a text box (don't make a picture). It should look like this with different line numbers:&lt;/P&gt;
&lt;PRE&gt;203  %let root=C:\Users\chemin;
204
205  %let fic_OneDrive=&amp;amp;root.\%nrstr(toto &amp;amp;titi);
206
207  %put fic_OneDrive resolves to: &amp;amp;fic_OneDrive.;
fic_OneDrive resolves to: C:\Users\chemin\toto &amp;amp;titi
&lt;/PRE&gt;
&lt;P&gt;You picture shows characters that do not appear in the text previously. If they do not appear as in the above then it is likely that you may have gotten some invisible characters some how. Retype the code for the entire %let statement in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943666#M369831</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-12T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943667#M369832</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4053"&gt;@blast&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;i totally agree with you Kurt.&lt;BR /&gt;thank you for being so polite.&lt;BR /&gt;unlucky Sometimes, you're not the one who choose such directory names &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yep. When our IT set up our OneDrive storage we had to include a "OneDrive - XXX" in the path of every file (all work product must be on OneDrive).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943667#M369832</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-12T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943668#M369833</link>
      <description>&lt;P&gt;Please show your full code and log, it can be just a small example reproducing the problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%NRSTR() should work, but there are situations where a symbol hidden by %NRSTR can be automatically un-hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a simple test, and it worked fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=Q:\Junk\%nrstr(foo&amp;amp;bar.txt) ;

filename foo "&amp;amp;path" ;

data _null_ ;
  infile foo ;
  input ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log is:&lt;/P&gt;
&lt;PRE&gt;1    %let path=Q:\Junk\%nrstr(foo&amp;amp;bar.txt) ;
2
3    filename foo "&amp;amp;path" ;
4
5    data _null_ ;
6      infile foo ;
7      input ;
8    run ;

NOTE: The infile FOO is:
      Filename=Q:\Junk\foo&amp;amp;bar.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=48238,
      Last Modified=06Sep2024:15:51:56,
      Create Time=06Sep2024:15:50:38

NOTE: 1950 records were read from the infile FOO.
      The minimum record length was 0.
      The maximum record length was 146.
&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943668#M369833</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-09-12T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Do not resolve the &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;a</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943759#M369868</link>
      <description>Ok, it works today &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;thanks for your help, i don't know why yesterday it didn't (an issue with symbolgen , don't know..)&lt;BR /&gt;&lt;BR /&gt;Merci beaucoup &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and have a great week-end&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2024 09:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Do-not-resolve-the-amp/m-p/943759#M369868</guid>
      <dc:creator>blast</dc:creator>
      <dc:date>2024-09-13T09:25:57Z</dc:date>
    </item>
  </channel>
</rss>

