<?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: Getting a successful proc import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696357#M212682</link>
    <description>&lt;P&gt;If a person is naming these files, or code creating them may change, you might have an issue with multiple spaces in the actual file path.&lt;/P&gt;
&lt;P&gt;When you look at something it may be hard to catch the extra space between:&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields  11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;Worse could be use of a character other than the typical blank that appears as a space&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields&amp;nbsp;11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;In the line immediately above the "space" before the 11 is actually an ASCII-255 , not a space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestion: If you can talk to the people creating these if the names are in YYYYMMDD format, and use 2 digits for both month and day, then at least the files will sort properly using OS tools. I.E:&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 20201103.xlsx"&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Nov 2020 22:29:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-03T22:29:07Z</dc:date>
    <item>
      <title>Getting a successful proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696348#M212675</link>
      <description>&lt;P&gt;This is a common question regarding using Proc Import to import xlsx and csv files into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used this code for the last couple imports and it worked well.&amp;nbsp; It is shone here&lt;/P&gt;
&lt;PRE&gt;Proc import datafile = "I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 11_3_2020.xlsx"
            out = SASCDC_2.ARIAS_County_Race_Ethnicity
            dbms = xlsx	
			replace;
			getnames=yes;
			run;&lt;/PRE&gt;
&lt;P&gt;But the error of Physical file does not exist comes back.&amp;nbsp; I have probably walked through the coding a dozen times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc import datafile = "I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All&lt;BR /&gt;501! Contacts_Added_Fields 11_3_2020.xlsx"&lt;BR /&gt;502 out = SASCDC_2.ARIAS_County_Race_Ethnicity&lt;BR /&gt;503 dbms = xlsx&lt;BR /&gt;504 replace;&lt;BR /&gt;505 getnames=yes;&lt;BR /&gt;506 run;&lt;/P&gt;
&lt;P&gt;ERROR: &lt;STRONG&gt;Physical file does not exist, I:\Health&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 11_3_2020.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything that I am forgetting.&amp;nbsp; Someone suggested removing some of the file steps and just have the xlsx / csv files after the AMB_INFORMATICS step.&amp;nbsp; The thing is though this coding worked with the last import about two weeks ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or direction will be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wlierman&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696348#M212675</guid>
      <dc:creator>wlierman</dc:creator>
      <dc:date>2020-11-03T22:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a successful proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696352#M212677</link>
      <description>&lt;P&gt;I'm sure this is stating the obvious but have you checked that "I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 11_3_2020.xlsx" still exists?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696352#M212677</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-03T22:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a successful proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696353#M212678</link>
      <description>Given that the date of the file is today, that's a new file so there's no guarantee the file is there. Go to the actual file in Windows, hold down CTRL+SHIFT and right click the file. Select Copy as Path. Then use that in your code to avoid any issues.</description>
      <pubDate>Tue, 03 Nov 2020 22:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696353#M212678</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-03T22:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a successful proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696357#M212682</link>
      <description>&lt;P&gt;If a person is naming these files, or code creating them may change, you might have an issue with multiple spaces in the actual file path.&lt;/P&gt;
&lt;P&gt;When you look at something it may be hard to catch the extra space between:&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields  11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;Worse could be use of a character other than the typical blank that appears as a space&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields&amp;nbsp;11_3_2020.xlsx"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;In the line immediately above the "space" before the 11 is actually an ASCII-255 , not a space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestion: If you can talk to the people creating these if the names are in YYYYMMDD format, and use 2 digits for both month and day, then at least the files will sort properly using OS tools. I.E:&lt;/P&gt;
&lt;PRE&gt;"I:\Health Analytics\AMB_INFORMATICS\ARIAS_COUNTY_RACE_ETHNICITY\All Contacts_Added_Fields 20201103.xlsx"&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696357#M212682</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-03T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a successful proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696381#M212690</link>
      <description>Thank you for the procedure to check.  I have not used it before and look forward to applying it in this situation.&lt;BR /&gt;&lt;BR /&gt;wlierman</description>
      <pubDate>Wed, 04 Nov 2020 00:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-successful-proc-import/m-p/696381#M212690</guid>
      <dc:creator>wlierman</dc:creator>
      <dc:date>2020-11-04T00:01:00Z</dc:date>
    </item>
  </channel>
</rss>

