<?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: Starting Excel in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76671#M1068</link>
    <description>I don't use this enough to be much help but I belive this is the function you need.&lt;BR /&gt;
&lt;BR /&gt;
Equivalent to choosing the Number tab in the Format Cells dialog box, which appears when you choose Cells from the Format menu. Formats numbers, dates, and times in the selected cells, data labels, and axis labels on charts. Use FORMAT.NUMBER to apply built-in formats or to create and apply custom formats.&lt;BR /&gt;
&lt;BR /&gt;
Syntax&lt;BR /&gt;
&lt;BR /&gt;
FORMAT.NUMBER(format_text)&lt;BR /&gt;
FORMAT.NUMBER?(format_text)&lt;BR /&gt;
Format_text    is a format string, such as "#, ##0.00", specifying which format to apply to the selection.</description>
    <pubDate>Mon, 09 Mar 2009 14:16:03 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-03-09T14:16:03Z</dc:date>
    <item>
      <title>Starting Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76668#M1065</link>
      <description>In the Vyverman paper &lt;B&gt;Using Dynamic Data Exchange to Export Your SAS® Data to MS Excel&lt;BR /&gt;
— Against All ODS, Part I —&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
at &lt;I&gt;http://www.sas-consultant.com/professional/SUGI26-Against-All-ODS-1.pdf&lt;/I&gt;,&lt;BR /&gt;
&lt;BR /&gt;
you can find code by Roper on how to start Excel. It looks like this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;options noxsync noxwait;&lt;BR /&gt;
filename sas2xl dde 'excel|system';&lt;BR /&gt;
data _null_;&lt;BR /&gt;
length fid rc start stop time 8;&lt;BR /&gt;
fid=fopen('sas2xl','s');&lt;BR /&gt;
if (fid le 0) then do;&lt;BR /&gt;
rc=system('start excel');&lt;BR /&gt;
start=datetime();&lt;BR /&gt;
stop=start+10;&lt;BR /&gt;
do while (fid le 0);&lt;BR /&gt;
fid=fopen('sas2xl','s');&lt;BR /&gt;
time=datetime();&lt;BR /&gt;
if (time ge stop) then fid=1;&lt;BR /&gt;
end;&lt;BR /&gt;
end;&lt;BR /&gt;
rc=fclose(fid);&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
When I try to run the code I get the message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ERROR 23-2: Invalid option name excel .&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
What can be wrong? Of course I have Excel installed.&lt;BR /&gt;
&lt;BR /&gt;
Anne</description>
      <pubDate>Mon, 09 Mar 2009 10:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76668#M1065</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-09T10:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76669#M1066</link>
      <description>I copied the code you posted and it does start excel on my PC. Excel2003.&lt;BR /&gt;
&lt;BR /&gt;
Try this...&lt;BR /&gt;
Determine the "command" that starts excel from the excel short cut on your PC.  &lt;BR /&gt;
[pre]&lt;BR /&gt;
   Right click "properties".&lt;BR /&gt;
   Copy the target field from that dialog.  &lt;BR /&gt;
   Open CMD window&lt;BR /&gt;
   Enter START "title" "and paste from target"&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Where past from target is what you copied from properties.target.&lt;BR /&gt;
"title" is a place holder.&lt;BR /&gt;
&lt;BR /&gt;
If you can get that to work than replace the START command in the ROPER code, with the start command that actually works on your system.</description>
      <pubDate>Mon, 09 Mar 2009 11:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76669#M1066</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-03-09T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76670#M1067</link>
      <description>I tried once more before I got your answer. It worked.&lt;BR /&gt;
&lt;BR /&gt;
There must have been some unwanted character in my code.&lt;BR /&gt;
&lt;BR /&gt;
But now I have another question: In the cited paper, on page 5, some formatting is made, like &lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;put '[format.font("Verdana", ... )]';&lt;/I&gt;.&lt;BR /&gt;
&lt;BR /&gt;
How can I set the number of decimal places with similar code?</description>
      <pubDate>Mon, 09 Mar 2009 12:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76670#M1067</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-09T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Excel</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76671#M1068</link>
      <description>I don't use this enough to be much help but I belive this is the function you need.&lt;BR /&gt;
&lt;BR /&gt;
Equivalent to choosing the Number tab in the Format Cells dialog box, which appears when you choose Cells from the Format menu. Formats numbers, dates, and times in the selected cells, data labels, and axis labels on charts. Use FORMAT.NUMBER to apply built-in formats or to create and apply custom formats.&lt;BR /&gt;
&lt;BR /&gt;
Syntax&lt;BR /&gt;
&lt;BR /&gt;
FORMAT.NUMBER(format_text)&lt;BR /&gt;
FORMAT.NUMBER?(format_text)&lt;BR /&gt;
Format_text    is a format string, such as "#, ##0.00", specifying which format to apply to the selection.</description>
      <pubDate>Mon, 09 Mar 2009 14:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Starting-Excel/m-p/76671#M1068</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-03-09T14:16:03Z</dc:date>
    </item>
  </channel>
</rss>

