<?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 to specific unnamed range in xlsx file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/808915#M318966</link>
    <description>&lt;P&gt;Probably you can take a look at this new solution, have similar effects like DDE (i.e. inject values to any cell of choice in an Excel/ Word/ PowerPoint template), which works well for cloud/citrix server environment.&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Hacker-s-Hub/One-Click-Report-Automation-Healthcare-amp-other-industries/ta-p/803511" target="_blank"&gt;One-Click Report Automation - An automated and user friendly workflow for efficient, flexible, and extendable analysis and reporting (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 20:00:45 GMT</pubDate>
    <dc:creator>Bravez</dc:creator>
    <dc:date>2022-04-20T20:00:45Z</dc:date>
    <item>
      <title>proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743598#M232847</link>
      <description>&lt;P&gt;I am using SAS version 9.4 and am trying to export some data to a specific unnamed range in an xlsx file. The data I have is stored in the UNIX environment and I want to export it to a windows xlsx file. I have checked the proc sentit and observed the necessary license ("SAS/ACCESS Interface to PC Files").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into ods excel however&amp;nbsp;the issue with this it cannot be used to change an existing file. Also, I&amp;nbsp;believe this still does not meet my requirement to export data to a&amp;nbsp;windows destination as it interacts with UNIX destinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have since adopted a proc export and have managed to export to a sheet, but in the default position (A1). My code can be seen below (ignoring the XXXXs which are just illustrative for completion):&lt;/P&gt;&lt;PRE&gt;%Macro ExportToLAN(Dset,LAN_Name,sheet,range);

	proc export dbms=excelcs
		data=&amp;amp;dset.
		outfile="&amp;amp;LAN_Name."
		replace;
		sheet=&amp;amp;sheet.;
		range=&amp;amp;range.;
		server='XXXXXX';
		port=XXXX;
		SERVERUSER="%sysfunc(strip(&amp;amp;LAN_username.))";
		SERVERPASS="%sysfunc(strip(&amp;amp;LAN_password.))";
	run;

%Mend;&lt;/PRE&gt;&lt;P&gt;Running this macro results in a warning:&lt;/P&gt;&lt;P&gt;WARNING: This RANGE statement is not supported and is ignored in Export Procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea on how to resolve this or better have any alternative solutions to exporting data to specific unnamed ranges?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743598#M232847</guid>
      <dc:creator>vassYesMan</dc:creator>
      <dc:date>2021-05-25T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743864#M232982</link>
      <description>&lt;P&gt;Here is one example of how to use SAS Access to output to excel. In document there is also discussion , using DDE but please ignore this portion as this would not work on a server environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/024-31.pdf" target="_blank"&gt;024-31: De-Mystifying the SAS® LIBNAME Engine in Microsoft Excel: A Practical Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 13:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743864#M232982</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2021-05-26T13:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743950#M233011</link>
      <description>&lt;P&gt;What I have seen suggested for this is to NOT write directly to a range in the target file.&lt;/P&gt;
&lt;P&gt;Instead write a whole SHEET in the target file and use Excel features to show the value from the sheet t in the range where you want it.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/743950#M233011</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-26T16:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/744885#M233422</link>
      <description>I've had a read through this an do not think it is what I am looking for. The paper references named ranges.&lt;BR /&gt;&lt;BR /&gt;The following may be what I am looking for but if I have multiple tables that I want in the same sheet, each step would involve overwriting existing data.&lt;BR /&gt;&lt;BR /&gt;"To write data beginning elsewhere than default cell A1, first specify an empty named range in Excel. When writing to&lt;BR /&gt;that range SAS will begin in the top-left cell of the range and add columns or rows as necessary."&lt;BR /&gt;&lt;BR /&gt;Also, this seems complicated - does it require creating several empty rows and columns in order to get your data where you want it?&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jun 2021 08:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/744885#M233422</guid>
      <dc:creator>vassYesMan</dc:creator>
      <dc:date>2021-06-01T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/744886#M233423</link>
      <description>Can you expand on this a little? With regards to excel features are you talking about setting an "=A1" where A1 contains some data I want? Or are you talking about a more sophisticated functionality I am missing.&lt;BR /&gt;&lt;BR /&gt;I am exporting several small tables and they all appear on a single sheet. Currently, they are already referenced in the way above in order to format them ("=A1"). However, currently the only way I can include new tables is by copy and pasting them into the location required. Of course I am trying to get around this, but by minimising disruption to my existing spreadsheet design (which may not be optimal, however this is a separate issue).</description>
      <pubDate>Tue, 01 Jun 2021 08:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/744886#M233423</guid>
      <dc:creator>vassYesMan</dc:creator>
      <dc:date>2021-06-01T08:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to specific unnamed range in xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/808915#M318966</link>
      <description>&lt;P&gt;Probably you can take a look at this new solution, have similar effects like DDE (i.e. inject values to any cell of choice in an Excel/ Word/ PowerPoint template), which works well for cloud/citrix server environment.&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Hacker-s-Hub/One-Click-Report-Automation-Healthcare-amp-other-industries/ta-p/803511" target="_blank"&gt;One-Click Report Automation - An automated and user friendly workflow for efficient, flexible, and extendable analysis and reporting (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-specific-unnamed-range-in-xlsx-file/m-p/808915#M318966</guid>
      <dc:creator>Bravez</dc:creator>
      <dc:date>2022-04-20T20:00:45Z</dc:date>
    </item>
  </channel>
</rss>

