<?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 What is the problem with my code? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285102#M58216</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;first&lt;/STRONG&gt; question is that I can import the EXCEL file. It is a very simple line, but I can find what the problem is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT DATAFILE='D:\sasprogramming\Ex1.xlsx'  OUT= Ex1 DBMS=xlsx REPLACE;
RUN;&lt;/PRE&gt;
&lt;P&gt;here is the log:&lt;/P&gt;
&lt;PRE&gt;ERROR: Error opening XLSX file -&amp;gt; D:\sasprogramming\THEORY\Class_2\Home_Exercises\Ex1.xlsx .  It is either not an Excel spreadsheet 
or it is damaged.   Error code=80000808
Requested Input File Is Invalid
ERROR: Import unsuccessful.  See SAS Log for details.&lt;/PRE&gt;
&lt;P&gt;The Excel file (see attachement) is complete and I can open it smoothly, so I really wonder where the problem is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;second&lt;/STRONG&gt; question: I am a new SAS EG user, and everytime I run the same line it creates a new process in the left area. It looks weird, so I am wondering is it normal? If not, what can I do for this?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4109i7E240967157F340C/image-size/large?v=v2&amp;amp;px=-1" border="0" alt="2016-07-17_163823.png" title="2016-07-17_163823.png" /&gt;&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;
&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>Sun, 17 Jul 2016 14:51:01 GMT</pubDate>
    <dc:creator>DingDing</dc:creator>
    <dc:date>2016-07-17T14:51:01Z</dc:date>
    <item>
      <title>What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285102#M58216</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;first&lt;/STRONG&gt; question is that I can import the EXCEL file. It is a very simple line, but I can find what the problem is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT DATAFILE='D:\sasprogramming\Ex1.xlsx'  OUT= Ex1 DBMS=xlsx REPLACE;
RUN;&lt;/PRE&gt;
&lt;P&gt;here is the log:&lt;/P&gt;
&lt;PRE&gt;ERROR: Error opening XLSX file -&amp;gt; D:\sasprogramming\THEORY\Class_2\Home_Exercises\Ex1.xlsx .  It is either not an Excel spreadsheet 
or it is damaged.   Error code=80000808
Requested Input File Is Invalid
ERROR: Import unsuccessful.  See SAS Log for details.&lt;/PRE&gt;
&lt;P&gt;The Excel file (see attachement) is complete and I can open it smoothly, so I really wonder where the problem is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;second&lt;/STRONG&gt; question: I am a new SAS EG user, and everytime I run the same line it creates a new process in the left area. It looks weird, so I am wondering is it normal? If not, what can I do for this?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4109i7E240967157F340C/image-size/large?v=v2&amp;amp;px=-1" border="0" alt="2016-07-17_163823.png" title="2016-07-17_163823.png" /&gt;&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;
&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>Sun, 17 Jul 2016 14:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285102#M58216</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2016-07-17T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285105#M58219</link>
      <description>&lt;P&gt;Your XLSX file looks fine. What version of SAS are you using?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;154   libname x xlsx "&amp;amp;path\Ex1.xlsx";
NOTE: Libref X was successfully assigned as follows:
      Engine:        XLSX
      Physical Name: C:\Downloads\Ex1.xlsx
155   proc copy inlib=x outlib=work; run;

NOTE: Copying X.SHEET1 to WORK.SHEET1 (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: The import data set has 395 observations and 100 variables.
NOTE: There were 395 observations read from the data set X.SHEET1.
NOTE: The data set WORK.SHEET1 has 395 observations and 100 variables.
NOTE: Copying X.SHEET2 to WORK.SHEET2 (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: The import data set has 0 observations and 0 variables.
NOTE: There were 0 observations read from the data set X.SHEET2.
NOTE: The data set WORK.SHEET2 has 0 observations and 0 variables.
NOTE: Copying X.SHEET3 to WORK.SHEET3 (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: The import data set has 0 observations and 0 variables.
NOTE: There were 0 observations read from the data set X.SHEET3.
NOTE: The data set WORK.SHEET3 has 0 observations and 0 variables.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Jul 2016 16:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285105#M58219</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-07-17T16:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285112#M58225</link>
      <description>Hi, I use SAS enterprise guide 7. Can you import the data file with the same codes?</description>
      <pubDate>Sun, 17 Jul 2016 19:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285112#M58225</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2016-07-17T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285114#M58226</link>
      <description>&lt;P&gt;Resave your file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open it and save as XLSX workbook. I tried to preview it and it wouldn't open in my viewer so that would indicate that there is something abnormal with the file to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The proc copy will import all the sheets in the workbook which may or may not be what you want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2016 19:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285114#M58226</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-17T19:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285116#M58227</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom﻿&lt;/a&gt;, I found I make a stupid mistake that I run SAS through a server, so I shouldn't run it through a local path. Now my first question is solved, but still the &lt;STRONG&gt;second&lt;/STRONG&gt; question is still confusing. Do you have any idea about that? Why I everytime I run the code, it automatically create a sas2(2), sas&lt;SPAN&gt;2(2)(2),sas2(2)&lt;SPAN&gt;(2),&amp;nbsp;sas&lt;SPAN&gt;2(2)&lt;/SPAN&gt;&lt;SPAN&gt;(2) and so on. Are they normal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2016 19:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285116#M58227</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2016-07-17T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285125#M58230</link>
      <description>&lt;P&gt;No, that's not normal. Check the options and see if you have an autosave of some kind set up. That's the only thing I could think that would create a copy each time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2016 20:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285125#M58230</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-17T20:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the problem with my code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285127#M58232</link>
      <description>Hi, it's from a remote server, so the setting is automatically, and I can't change any seting up</description>
      <pubDate>Sun, 17 Jul 2016 21:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-problem-with-my-code/m-p/285127#M58232</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2016-07-17T21:10:36Z</dc:date>
    </item>
  </channel>
</rss>

