<?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: proc export a dataset into certain cells of excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-a-dataset-into-certain-cells-of-excel-file/m-p/580850#M165028</link>
    <description>Try the RANGE option, but you need to include the Sheet name in the RANGE. If you don't know the end of the range just put a 0 to function as a wildcard.&lt;BR /&gt;&lt;BR /&gt;range="Sheet1$A1:0"&lt;BR /&gt;&lt;BR /&gt;I don't know if that's the exact format the range should be in, but hopefully that gives you the idea of what you need to do.&lt;BR /&gt;&lt;BR /&gt;There's also a user custom written macro here that  offers more control. &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Additional-capabilities-when-exporting-data-to-Excel/m-p/442605?title=A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Additional-capabilities-when-exporting-data-to-Excel/m-p/442605?title=A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;</description>
    <pubDate>Tue, 13 Aug 2019 15:32:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-13T15:32:02Z</dc:date>
    <item>
      <title>proc export a dataset into certain cells of excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-a-dataset-into-certain-cells-of-excel-file/m-p/580836#M165023</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset saved in a permanent library, I want to use proc export to export dataset into an excel file. That excel file is a template so there are some title/date at the very top of the sheet. I want to export my dataset starting row 7 for example. My code looks like:&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA = perm.dataset&lt;/P&gt;&lt;P&gt;dbms=xlsx&lt;/P&gt;&lt;P&gt;outfile= "&amp;amp;libnm./&amp;amp;file." label REPLACE;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;sheet="&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="2"&gt;data&lt;/FONT&gt;&lt;FONT size="2"&gt;";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any options in proc export to allow me to do that?&lt;/P&gt;&lt;P&gt;PS: This is an auto-process without any manual work.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-a-dataset-into-certain-cells-of-excel-file/m-p/580836#M165023</guid>
      <dc:creator>ForrestYao</dc:creator>
      <dc:date>2019-08-13T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc export a dataset into certain cells of excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-a-dataset-into-certain-cells-of-excel-file/m-p/580850#M165028</link>
      <description>Try the RANGE option, but you need to include the Sheet name in the RANGE. If you don't know the end of the range just put a 0 to function as a wildcard.&lt;BR /&gt;&lt;BR /&gt;range="Sheet1$A1:0"&lt;BR /&gt;&lt;BR /&gt;I don't know if that's the exact format the range should be in, but hopefully that gives you the idea of what you need to do.&lt;BR /&gt;&lt;BR /&gt;There's also a user custom written macro here that  offers more control. &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Additional-capabilities-when-exporting-data-to-Excel/m-p/442605?title=A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Additional-capabilities-when-exporting-data-to-Excel/m-p/442605?title=A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-a-dataset-into-certain-cells-of-excel-file/m-p/580850#M165028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T15:32:02Z</dc:date>
    </item>
  </channel>
</rss>

