<?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: Creating single report from mutiple excels in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536814#M6663</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="\myserver\myfolder\myexcelfile.xlsx" options(sheet_name='SheetName1');
... some SAS code ...

ods excel options(sheet_name='SheetName2');
... some SAS code ...

ods excel options(sheet_name='SheetName3');
... some SAS code ...

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Above is the general approach. Of course, we don't know what your macro %METRICS does, so there may be other approaches.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 16:54:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-02-19T16:54:24Z</dc:date>
    <item>
      <title>Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536812#M6662</link>
      <description>&lt;P&gt;I have three macros below which creates three excel reports with multiple sheets inside.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**12 months**&lt;/P&gt;&lt;P&gt;%metrics(score =y,vintage=y,excel=excel1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**06 months**&lt;/P&gt;&lt;P&gt;%metrics(score =y,vintage=y,excel=excel2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**18 months**&lt;/P&gt;&lt;P&gt;%metrics(score =y,vintage=y,excel=excel3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run this SAS it creates three excel sheets with multiple sheets in&amp;nbsp; &amp;nbsp;winscp location sas/output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know how to create a single excel picking up particular sheets from each three excel and output it into new excel document below these three macros and output it in same winscp location.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536812#M6662</guid>
      <dc:creator>samuelsuresh</dc:creator>
      <dc:date>2019-02-19T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536814#M6663</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="\myserver\myfolder\myexcelfile.xlsx" options(sheet_name='SheetName1');
... some SAS code ...

ods excel options(sheet_name='SheetName2');
... some SAS code ...

ods excel options(sheet_name='SheetName3');
... some SAS code ...

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Above is the general approach. Of course, we don't know what your macro %METRICS does, so there may be other approaches.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536814#M6663</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-19T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536815#M6664</link>
      <description>Thanks Miller. Can you explain how it reads multiple excels and create one excel file.</description>
      <pubDate>Tue, 19 Feb 2019 16:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536815#M6664</guid>
      <dc:creator>samuelsuresh</dc:creator>
      <dc:date>2019-02-19T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536817#M6665</link>
      <description>&lt;P&gt;It doesn't read multiple Excel sheets. You don't create multiple Excel files. You run the code above to create one Excel file with multiple worksheets.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536817#M6665</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-19T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536819#M6666</link>
      <description>Thanks Miller. But the macros are creating in a way to create multiple Excel which I cannot change now. So i need to know how to do it when there are multiple excel sheets</description>
      <pubDate>Tue, 19 Feb 2019 16:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536819#M6666</guid>
      <dc:creator>samuelsuresh</dc:creator>
      <dc:date>2019-02-19T16:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536825#M6667</link>
      <description>Hi:&lt;BR /&gt;  It's still not clear what you need to do. No one can give you good advice on this because the solution depends on what is INSIDE the %metrics macro program definition. If you already have ODS EXCEL statements inside that macro program, then adding more ODS EXCEL statement outside the macro calls won't work.&lt;BR /&gt;&lt;BR /&gt;  I would recommend going back to the person who wrote the %metrics macro program definition and ask them for help with your new requirements or, open a track with Tech Support where they can look at ALL your code including ALL the macro program code and help you with a resolution.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 19 Feb 2019 17:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/536825#M6667</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-02-19T17:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating single report from mutiple excels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/537300#M6756</link>
      <description>Thank you Cynthia</description>
      <pubDate>Thu, 21 Feb 2019 04:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-single-report-from-mutiple-excels/m-p/537300#M6756</guid>
      <dc:creator>samuelsuresh</dc:creator>
      <dc:date>2019-02-21T04:20:54Z</dc:date>
    </item>
  </channel>
</rss>

