<?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: SAS Importing File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373695#M89402</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;amp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole Idea is that I want the code to automate the process of importing files into SAS so using the EG menus is a manual process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can import if my SAS sits on a unix server through method of coding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 15:07:32 GMT</pubDate>
    <dc:creator>CamRutherford</dc:creator>
    <dc:date>2017-07-06T15:07:32Z</dc:date>
    <item>
      <title>SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373661#M89396</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some assistance - I have SAS Enterprise Guide&amp;nbsp;6.1 M1HF7 (6.100.0.4234) (64-bit). I use citrix reciever and am looking to import all files from a given folder on my local C drive. Below is the code I currently have but for some reason it falls over...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC IMPORT DATAFILE='\\Client\C$:\SAS\EME June.CSV'
OUT= WORK.NEWDATA
DBMS =  CSV.
REPLACE;
GETNAMES=YES;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cam&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 13:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373661#M89396</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-07-06T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373671#M89397</link>
      <description>&lt;P&gt;In general, it's likely SAS can't see your local drive and is running on a server somewhere. You may be able to use the GUI version to import your data but that may not work through Citrix either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code has a small error, the period after CSV. And what exactly does 'fall over' mean, that's uninformative. Did you receive an error message?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373671#M89397</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-06T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373674#M89398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah I get the following error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;BR /&gt;WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;ERROR: Physical file does not exist, /opt/sasconfig/grd/Lev1/SASApp/\\Client\C$:\SAS\EME June.csv.&lt;BR /&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373674#M89398</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-07-06T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373688#M89399</link>
      <description>&lt;P&gt;Your SAS is not running on the Windows server that your Citrix session is running on. &amp;nbsp;It is running on a Unix server. That is why it cannot see the file name you used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are running Enterprise Guide on the Citrix server then you should be able to use the Enterprise Guide menus for importing a CSV file and it will copy the CSV file to the SAS server and then run SAS code to create a SAS dataset from the file it uploaded.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373688#M89399</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-06T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373695#M89402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;amp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole Idea is that I want the code to automate the process of importing files into SAS so using the EG menus is a manual process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can import if my SAS sits on a unix server through method of coding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373695#M89402</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-07-06T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373696#M89403</link>
      <description>&lt;P&gt;it depends on your setup but it's unlikely to be solved via SAS alone. Your data will need to be in a location that the server has access to. You can look into the Copy Files EG task but I'm not sure if that can be automated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Citrix/server security blocks data from leaving a system. It also makes it harder to get data in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373696#M89403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-06T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Importing File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373697#M89404</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/116539"&gt;@CamRutherford&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;amp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The whole Idea is that I want the code to automate the process of importing files into SAS so using the EG menus is a manual process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way I can import if my SAS sits on a unix server through method of coding?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Cam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Once the files are available on the server where SAS is running it is easy to automate reading all files from a directory (there are dozens of questions on that subject on this forum). &amp;nbsp;So either mount the folder with the files on the Unix server. &amp;nbsp;Or setup an FTP server that can see the files and use FTP to move the files to the Unix server. You can even have SAS ftp the files for you, or read the files via the FTP engine on the FILENAME statement so that you don't need to save copies of the raw files on the SAS server.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Importing-File/m-p/373697#M89404</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-06T15:13:03Z</dc:date>
    </item>
  </channel>
</rss>

