<?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: Problem while exporting to xml file using ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531989#M22305</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; yeah sure!! Thanks for the tip.</description>
    <pubDate>Fri, 01 Feb 2019 14:00:14 GMT</pubDate>
    <dc:creator>Vigneswar</dc:creator>
    <dc:date>2019-02-01T14:00:14Z</dc:date>
    <item>
      <title>Problem while exporting to xml file using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531966#M22301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export into xml file using ods tagset. I am providing the output file name by referring a macro variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro Export(output1=, input1=, output2=, input2=, output3=, input3=);&lt;/P&gt;&lt;P&gt;%let t=%sysfunc(today());&lt;BR /&gt;%let monday=%sysfunc(intnx(week.2,&amp;amp;t,0,b),date9.);&lt;BR /&gt;%let outputdate=%substr(&amp;amp;monday,3,3)_%substr(&amp;amp;monday,1,2)_%substr(&amp;amp;monday,6);&lt;BR /&gt;%put &amp;amp;outputdate;&lt;/P&gt;&lt;P&gt;%let Bus = %scan(&amp;amp;output1.,1,_);&lt;BR /&gt;%put &amp;amp;Bus;&lt;/P&gt;&lt;P&gt;%let Business = %scan(&amp;amp;Bus,2,.);&lt;BR /&gt;%put &amp;amp;Business;&lt;/P&gt;&lt;P&gt;%let file = &amp;amp;Business._CM_ &amp;amp;outputdate;&lt;/P&gt;&lt;P&gt;%put &amp;amp;file;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP file="/sasconfig/Lev1/External/&amp;amp;file.xml" style=meadow&lt;BR /&gt;options (sheet_name = "&amp;amp;input1.");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my file name is resolving to&amp;nbsp;Canada_CM_ JAN_28_2019. But my output file is so different and I have attached screenshot of the output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I modify the file withing brackets as below, I am getting the output xml file as (Canada_CM_ JAN_28_2019)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP file="/sasconfig/Lev1/External/(&amp;amp;file).xml" style=meadow&lt;BR /&gt;options (sheet_name = "&amp;amp;input1.");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to export the xml file as&amp;nbsp;Canada_CM_ JAN_28_2019 only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Vigneswar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531966#M22301</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting to xml file using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531970#M22302</link>
      <description>&lt;P&gt;When you do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.ExcelXP file="/sasconfig/Lev1/External/&amp;amp;file.xml" style=meadow&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the dot immediately before the xml extension is "eaten" by the resolution of the macro variable.&lt;/P&gt;
&lt;P&gt;Remember Maxim 48?&lt;/P&gt;
&lt;P&gt;Do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.ExcelXP file="/sasconfig/Lev1/External/&amp;amp;file..xml" style=meadow&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One dot ends the macro variable reference, the second dot ends up in the filename.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531970#M22302</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-01T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting to xml file using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531975#M22303</link>
      <description>KurtBreamser,&lt;BR /&gt;&lt;BR /&gt;Yep, you are right and the changes worked..&lt;BR /&gt;&lt;BR /&gt;Thanks a lot !</description>
      <pubDate>Fri, 01 Feb 2019 13:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531975#M22303</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting to xml file using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531985#M22304</link>
      <description>&lt;P&gt;Small hint: when you want to adress another poster personally, just hit "@", and a list of all participants in the current thread will pop up. Select the one you want, and he/she will end up like this:&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117082"&gt;@Vigneswar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You avoid any misspelling, and the user is notified per mail. You can even "call out" &lt;EM&gt;any of the registered users&lt;/EM&gt;, if you enter enough characters of the username for a positive identification after the "@".&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531985#M22304</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-01T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting to xml file using ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531989#M22305</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; yeah sure!! Thanks for the tip.</description>
      <pubDate>Fri, 01 Feb 2019 14:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-while-exporting-to-xml-file-using-ODS/m-p/531989#M22305</guid>
      <dc:creator>Vigneswar</dc:creator>
      <dc:date>2019-02-01T14:00:14Z</dc:date>
    </item>
  </channel>
</rss>

