<?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: Statement to order my PC to open xlsx file in Excel program? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595141#M171164</link>
    <description>The setting that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; specified is correct - it will automatically open up the results as they're generated. &lt;BR /&gt;</description>
    <pubDate>Wed, 09 Oct 2019 17:31:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-09T17:31:30Z</dc:date>
    <item>
      <title>Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/594997#M171093</link>
      <description>&lt;P&gt;Dear All, I'm wondering if there is such a SAS statement/command to order my PC to open xlsx file using Microsoft Excel. After running some analyses in SAS, I report outputs in xlsx files. Obviously I would like to open them. But do I have to use another program such as Windows explorer to open the file? Or is there a way to do so in SAS? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/594997#M171093</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-09T09:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595007#M171095</link>
      <description>&lt;P&gt;Depends on the computer your sas-session is running on. If it is running on your computer try using the x-command or call system. If it is running on a server opening local files is not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595007#M171095</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-10-09T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595008#M171096</link>
      <description>&lt;P&gt;Only if&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS runs locally on your desktop&lt;/LI&gt;
&lt;LI&gt;you have XCMD enabled&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595008#M171096</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-09T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595025#M171103</link>
      <description>&lt;P&gt;@&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475" target="_self"&gt;&lt;SPAN class="login-bold"&gt;andreas_lds&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; Thanks for your comments. Could you please give me some keywords so that I can search on google? Sorry that I actually can't understand your answers.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595025#M171103</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-09T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595045#M171108</link>
      <description>&lt;P&gt;First we have to determine where your SAS session runs. From an earlier post of yours I take it that you actually use Display Manager; if that is running on your desktop (you are not logging on to a server and start Base SAS there), you can use the X statement to simply run your file (as Windows will automatically look for the correct application and start that):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export
  data=mylib.myset
  outfile="C:\some_path\excelfile.xlsx"
  dbms=xlsx
;
run;

options noxsync noxwait;
X "C:\some_path\excelfile.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 13:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595045#M171108</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-09T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595077#M171126</link>
      <description>&lt;P&gt;What type of SAS are you using, Studio, EG, Base? Base and EG have an option to open results as they're generated which is really the easiest option here, though it does depend a bit on how you're creating the files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not using ODS you may need the X command, but that's not available in all systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279507"&gt;@braam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear All, I'm wondering if there is such a SAS statement/command to order my PC to open xlsx file using Microsoft Excel. After running some analyses in SAS, I report outputs in xlsx files. Obviously I would like to open them. But do I have to use another program such as Windows explorer to open the file? Or is there a way to do so in SAS? Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595077#M171126</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-09T14:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595104#M171140</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;First we have to determine where your SAS session runs. From an earlier post of yours I take it that you actually use Display Manager; if that is running on your desktop (you are not logging on to a server and start Base SAS there), you can use the X statement to simply run your file (as Windows will automatically look for the correct application and start that):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export
  data=mylib.myset
  outfile="C:\some_path\excelfile.xlsx"
  dbms=xlsx
;
run;

options noxsync noxwait;
X "C:\some_path\excelfile.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually in Display Manager the first thing I would check are preferences: From the menu or tool bar: Select Tools&amp;gt;Options&amp;gt;Preferences. Go the Results tab and make sure that the "View results as they are generated" is checked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is checked then tell us what application is currently opening the file as that means that your Windows settings is defaulting to some other application and that Windows setting needs to change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 15:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595104#M171140</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-09T15:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595139#M171162</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; Thanks for your answer. The code from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; worked for me!&lt;BR /&gt;&lt;BR /&gt;I use SAS Base. Could you please let me know what I can do other than the X command? I think I'll use this type of work quite often. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Thanks for your suggestion. Again, it worked for me. But another issue I face now is that the directory that stores my excel file inlcudes a blank space like "D:\sas\Project AB\file.xlsx". When I run the code you shared, I got a pop-up message "Windows cannot find 'D:sas\Project AB\file.xlsx'. Make sure you typed the name correctly, and then try again. I'm sure it's coming from the blank, because it worked for me when I moved the file in "D:\sas". Do you know how to solve this issue? Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595139#M171162</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-09T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595141#M171164</link>
      <description>The setting that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; specified is correct - it will automatically open up the results as they're generated. &lt;BR /&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595141#M171164</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-09T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595143#M171165</link>
      <description>Yes, I think it's a good way. But I just wanted to open results only when I would like to have a look at. For example, conduct some a set of analyses first, save them into one excel file, and open the file.</description>
      <pubDate>Wed, 09 Oct 2019 17:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595143#M171165</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-09T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595145#M171167</link>
      <description>Makes sense, I prefer ODS EXCEL myself these days, seems like it provides enough of the style + data simplicity that works.</description>
      <pubDate>Wed, 09 Oct 2019 17:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595145#M171167</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-09T17:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595147#M171169</link>
      <description>&lt;P&gt;Make sure you are generating valid Windows syntax in your X command.&amp;nbsp; In particular you need quotes around names with embedded spaces.&amp;nbsp; (Why do people create filenames with spaces in them to begin with?).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X """C:\some_path\excelfile.xlsx""";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595147#M171169</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-09T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595148#M171170</link>
      <description>Ah got your piont. So output to excel using ODS and use the x command? Thanks. &lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; Thanks for your answer. It worked for me! Now I realized that it's not a good habit to have spaces in file/directory names. Thanks again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595148#M171170</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-09T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595163#M171172</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279507"&gt;@braam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now I realized that it's not a good habit to have spaces in file/directory names.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;See Maxim 44.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the biggest blunders of Microsoft (and they committed so many nobody even attempts to count them) was naming one of the most important system directories "Program Files" instead of just "programs". That's what happens when garage tinkerers think they have a clue about computers.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/595163#M171172</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-10T06:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/597929#M172349</link>
      <description>Dear Tom, could you explain the logic behind """ (three times)? Any link/document would be appreciated as well. I have no clue to dig in.</description>
      <pubDate>Sat, 19 Oct 2019 21:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/597929#M172349</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-19T21:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Statement to order my PC to open xlsx file in Excel program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/597930#M172350</link>
      <description>&lt;P&gt;Embedded quotes need to be doubled.&amp;nbsp; Some examples:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'Don''t'
"He said, ""Hello""."&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Windows allows spaces in directory and filenames.&amp;nbsp; Any name that might have a space in it needs to be quoted since space is the natural delimited between tokens on the command line.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 21:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Statement-to-order-my-PC-to-open-xlsx-file-in-Excel-program/m-p/597930#M172350</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-19T21:40:54Z</dc:date>
    </item>
  </channel>
</rss>

