<?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: Exporting datasets to specific columns in excel sheets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140903#M11184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; I don't have any examples already written that use named ranges. But I know there are some examples posted on support.sas.com and you can search for them. I believe there were also a lot of papers written about SAS and Excel...a few by Andrea Zimmerman and Harry Droogendyk stick in my mind. The topic should be Google-able.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But as I indicated, unless you "pre-format" the Excel file to have the "headings" SOURCE and TARGET, you will not be able to write them with SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 04:27:33 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-11-13T04:27:33Z</dc:date>
    <item>
      <title>Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140900#M11181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two data sets having columns Name, EMPID. Say, one is source and the other is Target and having the same column names. I want these two files to get exported to excel file, at different columns in a same sheet. Say Target needs to be at column A and Source needs to be at column D. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to include a header before these two outputs in excel sheet as Source and Target. How can we do this? Any Help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140900#M11181</guid>
      <dc:creator>Santhosh_CHN</dc:creator>
      <dc:date>2013-11-12T21:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140901#M11182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; There are several different ways to export your data files to Excel proprietary format: PROC EXPORT and the LIBNAME engine for Excel. You would have to use named ranges to get the output into specific columns, but that means some setup ahead of time to make the named ranges. However, that would not allow you to get the SOURCE and TARGET "headings" that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; On the other hand, you could use ODS destinations to create output for Excel. Getting the output side by side requires that you just use a TITLE statement and one of the ODS destinations that supports creating PANELed output. One such destination is ODS MSOFFICE2K_X, as described here (&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#paneling" title="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#paneling"&gt;Base SAS: The MSOffice2K_x Tagset Adds Options to the MSOffice2K Tagset&lt;/A&gt;). The example shows 3 tables horizontally, followed by 2 tables, but the general idea is there. You will need to download and install the TAGSETS.MSOFFICE2K_X destination control file (the tagset template), as described here (&lt;A href="http://support.sas.com/kb/32/394.html" title="http://support.sas.com/kb/32/394.html"&gt;32394 - Installing and Storing Updated Tagsets for ODS MARKUP&lt;/A&gt;). This still doesn't give you the exact control you want (to place something in a fixed starting column), but it does get the output side-by-side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 22:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140901#M11182</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-11-12T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140902#M11183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Cynthia,&lt;/P&gt;&lt;P&gt;you mind giving me a&amp;nbsp; short example how we can export these&amp;nbsp; 2 datasets to one excel file in 2 different columns with libname engine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 03:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140902#M11183</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2013-11-13T03:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140903#M11184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; I don't have any examples already written that use named ranges. But I know there are some examples posted on support.sas.com and you can search for them. I believe there were also a lot of papers written about SAS and Excel...a few by Andrea Zimmerman and Harry Droogendyk stick in my mind. The topic should be Google-able.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But as I indicated, unless you "pre-format" the Excel file to have the "headings" SOURCE and TARGET, you will not be able to write them with SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 04:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140903#M11184</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-11-13T04:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140904#M11185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="63295" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; &amp;amp; &lt;A __default_attr="809722" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did here is that, I renamed the column names separately like added SRC as prefix to the source attributes and TGT to Target attributes. Then I merged them and exported them to a single file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="63295" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140904#M11185</guid>
      <dc:creator>Santhosh_CHN</dc:creator>
      <dc:date>2013-11-13T19:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting datasets to specific columns in excel sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140905#M11186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,i did find a good article by Harry Droogendyk.&lt;/P&gt;&lt;P&gt;Thanks Cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 05:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-datasets-to-specific-columns-in-excel-sheets/m-p/140905#M11186</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2013-11-14T05:14:55Z</dc:date>
    </item>
  </channel>
</rss>

