<?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 using string text with macro variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282112#M14869</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to use the export funtion while doing regression analyses as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS TAGSETS.EXCELXP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='H:\Bildung_&amp;amp;x._mitAbi.xls'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE=minimal&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS ( Orientation = 'landscape'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FitToPage = 'yes'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pages_FitWidth = '1'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pages_FitHeight = '100' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is part of an big analysis macro. Is there a way that i can tell SAS that the "&amp;amp;x." in "file='H:\Bildung_&amp;amp;x._mitAbi.xls'" is actualy a macro variable? Its going to be a realy big number of regression analyses and i realy dont want to name the files manualy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 09:48:50 GMT</pubDate>
    <dc:creator>Ardaneth</dc:creator>
    <dc:date>2016-07-05T09:48:50Z</dc:date>
    <item>
      <title>using string text with macro variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282112#M14869</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to use the export funtion while doing regression analyses as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS TAGSETS.EXCELXP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='H:\Bildung_&amp;amp;x._mitAbi.xls'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE=minimal&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS ( Orientation = 'landscape'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FitToPage = 'yes'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pages_FitWidth = '1'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pages_FitHeight = '100' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is part of an big analysis macro. Is there a way that i can tell SAS that the "&amp;amp;x." in "file='H:\Bildung_&amp;amp;x._mitAbi.xls'" is actualy a macro variable? Its going to be a realy big number of regression analyses and i realy dont want to name the files manualy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282112#M14869</guid>
      <dc:creator>Ardaneth</dc:creator>
      <dc:date>2016-07-05T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: using string text with macro variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282121#M14870</link>
      <description>&lt;P&gt;Your program is nearly fine as is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Single quotes suppress all macro activity.&amp;nbsp; Use double quotes instead of single quotes around the file path.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282121#M14870</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-07-05T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: using string text with macro variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282124#M14871</link>
      <description>&lt;P&gt;something like that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*1st SOLUTION: using double quote*/
file="H:\Bildung_&amp;amp;x._mitAbi.xls"
    STYLE=minimal
    OPTIONS ( Orientation = 'landscape'
    FitToPage = 'yes'
    Pages_FitWidth = '1'
    Pages_FitHeight = '100' );

/*2nd SOLUTION: resolve the macrovars before*/
%LET X                          =file_xls_name;
%LET FILE_AND_PATH =H:\Bildung_&amp;amp;X._mitAbi.xls;
%PUT &amp;amp;X.;
%PUT &amp;amp;FILE_AND_PATH.;
file="&amp;amp;FILE_AND_PATH."
    STYLE=minimal
    OPTIONS ( Orientation = 'landscape'
    FitToPage = 'yes'
    Pages_FitWidth = '1'
    Pages_FitHeight = '100' );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;???&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282124#M14871</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-07-05T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: using string text with macro variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282143#M14872</link>
      <description>&lt;P&gt;Thanks. That was an easy solution, which spares me from a lot of work. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/using-string-text-with-macro-variables/m-p/282143#M14872</guid>
      <dc:creator>Ardaneth</dc:creator>
      <dc:date>2016-07-05T14:04:28Z</dc:date>
    </item>
  </channel>
</rss>

