<?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 IMPORT is not reading a new data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688152#M209259</link>
    <description>Hmm. I can't understand what you mean. They are 2 different Excel datafiles that are called by different PROC IMPORT. Like I said, I commented out the 1st proc import before running the 2nd. I assume (but being new to SAS, I am not so sure) that commenting out the ist proc import should not influence the 2nd. Is this correct?</description>
    <pubDate>Thu, 01 Oct 2020 10:22:36 GMT</pubDate>
    <dc:creator>RTO1944</dc:creator>
    <dc:date>2020-10-01T10:22:36Z</dc:date>
    <item>
      <title>Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687748#M209255</link>
      <description>&lt;P&gt;Why does Proc IMPORT keep processing an old data file even after uploading new data file and revising the file specs? No matter how many times I coaxed the Proc IMPORT, it kept processing (verified via proc print) the older file. How do I flush out the old data fle so that a new data can be treated by a subsequent macro program?&amp;nbsp; Before running the new PROC IMPORT, I usually&amp;nbsp; comment out the first PROC IMPORT. I assume this is enough but is it? Sometimes, I even quit SAS and come back to it but I still get the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I run the PROC IMPORT in SAS Studio under SAS On Demand for Academics.&amp;nbsp; All data files I referred to above were uploaded to the SAS server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the 2 PROC IMPORT snippets that I used. The only item that I changed was the data filename.&lt;/P&gt;&lt;P&gt;1. 1st PROC IMPORT&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;PROC IMPORT OUT= &lt;FONT color="#800000"&gt;LINXT1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;DATAFILE= "/home/u49732661/myData/&lt;FONT color="#800000"&gt;LINXT1.xls&lt;/FONT&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;DBMS=xls REPLACE;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;GETNAMES=YES;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc print;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;2nd PROC IMPORT - RUN AFTER COMMENTING OUT THE 1ST PROC IMPORT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;PROC IMPORT OUT= &lt;FONT color="#FF0000"&gt;LINXT5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;DATAFILE= "/home/u49732661/myData/&lt;FONT color="#FF0000"&gt;LINXT5.xls&lt;/FONT&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;DBMS=xls REPLACE;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;GETNAMES=YES;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;proc print;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687748#M209255</guid>
      <dc:creator>RTO1944</dc:creator>
      <dc:date>2020-09-30T08:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687803#M209256</link>
      <description>&lt;P&gt;Please show us the LOG for these two runs of PROC IMPORT. We need to see the ENTIRE (&lt;EM&gt;i.e.&lt;/EM&gt; all, every single line, 100%, nothing chopped out, including code, NOTEs, ERRORs and WARNINGs) for each run of PROC IMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please copy the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon. DO NOT SKIP THIS STEP.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687803#M209256</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-30T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687811#M209257</link>
      <description>&lt;P&gt;Are you absolutely sure that LINXT5.xls was not accidentally overwritten with the contents of LINXT1.xls?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/687811#M209257</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-30T13:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688151#M209258</link>
      <description>OK, I will recapture the problem and post the LOG of each PROC IMPORT run as soon as I can. Thanks.</description>
      <pubDate>Thu, 01 Oct 2020 10:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688151#M209258</guid>
      <dc:creator>RTO1944</dc:creator>
      <dc:date>2020-10-01T10:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688152#M209259</link>
      <description>Hmm. I can't understand what you mean. They are 2 different Excel datafiles that are called by different PROC IMPORT. Like I said, I commented out the 1st proc import before running the 2nd. I assume (but being new to SAS, I am not so sure) that commenting out the ist proc import should not influence the 2nd. Is this correct?</description>
      <pubDate>Thu, 01 Oct 2020 10:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688152#M209259</guid>
      <dc:creator>RTO1944</dc:creator>
      <dc:date>2020-10-01T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688153#M209260</link>
      <description>&lt;P&gt;When your LINXT5 dataset contains the same data as your LINXT1 dataset, then the input for both IMPORT steps must have been identical. This is most probably caused by an accidental overwrite of LINXT5.xlsx with the data of LINXT1.xlsx. It only takes a careless click in Excel.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688153#M209260</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-01T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688673#M209261</link>
      <description>&lt;P&gt;I am very sorry about this issue...my bad.&amp;nbsp; Let me just admit that I blew the whistle too soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to recapture the error but couldn't so it must have been a wrong folder spec that I supplied because when I supply the right ones to PROC IMPORT, I get the correct data. No problem there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only "beef"&amp;nbsp; on this issue &amp;gt;&amp;gt; when I err giving the correct folder location, SAS still processes the previous PROC IMPORT file that is stored in the WORK folder.&amp;nbsp; I agree that this calls for users to be wary and to always check the LOG&amp;nbsp; which, in this occasion,&amp;nbsp; gives "physical file does not exist...." error. An unsuspecting or careless user might just ignore or miss checking the LOG file and could be well off the right track, especially if the new data file has similar specs as the 1st.&amp;nbsp; I think it is better if SAS does not process the file in the temp WORK folder once the "physical file does not exist" error is detected.&amp;nbsp; Just my thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 08:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688673#M209261</guid>
      <dc:creator>RTO1944</dc:creator>
      <dc:date>2020-10-03T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IMPORT is not reading a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688674#M209262</link>
      <description>&lt;P&gt;That is why Maxim 2 is so high up on the list. It was one of the first 4 Maxims that came to my mind when I got the idea.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 10:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-IMPORT-is-not-reading-a-new-data-set/m-p/688674#M209262</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-03T10:00:00Z</dc:date>
    </item>
  </channel>
</rss>

