<?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 resolve a macro-variable within simple quotes ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8053#M199</link>
    <description>Phil,&lt;BR /&gt;
&lt;BR /&gt;
What &amp;amp; are you talking about ?&lt;BR /&gt;
&lt;BR /&gt;
It doesn't appear in your first message.&lt;BR /&gt;
&lt;BR /&gt;
Florent</description>
    <pubDate>Thu, 22 Apr 2010 12:40:51 GMT</pubDate>
    <dc:creator>Florent</dc:creator>
    <dc:date>2010-04-22T12:40:51Z</dc:date>
    <item>
      <title>How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8050#M196</link>
      <description>Hi,&lt;BR /&gt;
I am using ods ods tagsets.excelxp to make an xls file.&lt;BR /&gt;
&lt;BR /&gt;
I need to customize the header with a macro-variable.&lt;BR /&gt;
&lt;BR /&gt;
The Print_Header statement :&lt;BR /&gt;
&lt;BR /&gt;
Print_Header='&amp;amp;E Fichier audité : ' &amp;amp;fichierATraiter&lt;BR /&gt;
Produces a syntax error.&lt;BR /&gt;
&lt;BR /&gt;
Print_Header='&amp;amp;E Fichier audité : &amp;amp;fichierATraiter'&lt;BR /&gt;
Works but the header of the xls file is Fichier audité : ichierATraiter&lt;BR /&gt;
instead of Fichier audité : &lt;BR /&gt;
followed by the value of &amp;amp;fichierATraiter.&lt;BR /&gt;
&lt;BR /&gt;
What syntax would be correct ?&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Phil</description>
      <pubDate>Thu, 22 Apr 2010 11:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8050#M196</guid>
      <dc:creator>phil27</dc:creator>
      <dc:date>2010-04-22T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8051#M197</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Couldn't you use the following statement ?&lt;BR /&gt;
&lt;BR /&gt;
Print_Header="&amp;amp;E Fichier audité : &amp;amp;fichierATraiter"&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Florent</description>
      <pubDate>Thu, 22 Apr 2010 12:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8051#M197</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-04-22T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8052#M198</link>
      <description>Thanks Florent,&lt;BR /&gt;
it works but in this case the Excel layout doesn't work no more; &amp;amp; is not recognized by sas.&lt;BR /&gt;
&lt;BR /&gt;
phil</description>
      <pubDate>Thu, 22 Apr 2010 12:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8052#M198</guid>
      <dc:creator>phil27</dc:creator>
      <dc:date>2010-04-22T12:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8053#M199</link>
      <description>Phil,&lt;BR /&gt;
&lt;BR /&gt;
What &amp;amp; are you talking about ?&lt;BR /&gt;
&lt;BR /&gt;
It doesn't appear in your first message.&lt;BR /&gt;
&lt;BR /&gt;
Florent</description>
      <pubDate>Thu, 22 Apr 2010 12:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8053#M199</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-04-22T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8054#M200</link>
      <description>Excuse me, I meant &amp;amp;E. &amp;amp;Amp was for the footer.&lt;BR /&gt;
&lt;BR /&gt;
phil</description>
      <pubDate>Thu, 22 Apr 2010 12:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8054#M200</guid>
      <dc:creator>phil27</dc:creator>
      <dc:date>2010-04-22T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8055#M201</link>
      <description>Ok &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Could you try with the following statement ?&lt;BR /&gt;
Print_Header='&amp;amp;E Fichier audité : ' || "&amp;amp;fichierATraiter"&lt;BR /&gt;
&lt;BR /&gt;
Florent</description>
      <pubDate>Thu, 22 Apr 2010 12:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8055#M201</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-04-22T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro-variable within simple quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8056#M202</link>
      <description>This syntax works well :&lt;BR /&gt;
&lt;BR /&gt;
Print_Header="%nrstr(&amp;amp;)E Fichier audité :  &amp;amp;fichierATraiter"&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help.&lt;BR /&gt;
&lt;BR /&gt;
phil</description>
      <pubDate>Thu, 22 Apr 2010 12:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-within-simple-quotes/m-p/8056#M202</guid>
      <dc:creator>phil27</dc:creator>
      <dc:date>2010-04-22T12:51:12Z</dc:date>
    </item>
  </channel>
</rss>

