<?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 syntax to import CSV file into SAS EG 9.4 using server name and port number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954589#M372797</link>
    <description>&lt;P&gt;Your first PROC IMPORT step is accessing the server named WELSFGO.NETIZENS.BANK-DSb.COM via the SAS/ACCESS to PC-FILES process that is running on that machine.&amp;nbsp; The machine where SAS is running (not the machine you are using to run Enterprise Guide) is where the data is being imported into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that machine with the CSV file on it also running some&amp;nbsp; other server process, like an SFTP service or HTTP service?&amp;nbsp; If so you could use one of those methods to copy the file over to the machine where SAS is running.&amp;nbsp; You could then read the CSV with SAS code.&amp;nbsp; You could even let PROC IMPORT guess how to read the file if for some reason you do not know what is in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not then ask if the actual drive where the file you want lives is also mounted on the server where SAS is running.&amp;nbsp; Then you could just point to it directly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or have the drive that has the data made visible on the machine where you are running Enterprise Guide.&amp;nbsp; Then you could either use the EG tool for importing a CSV file to move it to the SAS server.&amp;nbsp; Or use the file upload task of Enterprise Guide to copy it to the SAS server.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 23:35:21 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-24T23:35:21Z</dc:date>
    <item>
      <title>SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954582#M372791</link>
      <description>&lt;P&gt;Dear SAS colleagues,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have to import "CSV" file and I have working code for "ACCESS" file. Here is the sample code for access database (just&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc import out = work.want
datatable= "GIVEN"
dbms = ACCESSCS replace;
database= "\\WELSFGO\KDRIVE$\Test_File.mdb"; 
server= 'WELSFGO.NETIZENS.BANK-DSb.COM';
port = 7845;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried different ways to import similar kind of code like the one shown below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc import out=want
DATAFILE="\\WELSFGO\KDRIVE$\Test_File.csv"
dbms=csv replace; 

server= 'WELSFGO.NETIZENS.BANK-DSb.COM';
port = 7845;

run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have any other details to know further. Could someone help me fix the syntax so that I&amp;nbsp; could import the csv file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 19:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954582#M372791</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2024-12-24T19:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954583#M372792</link>
      <description>&lt;P&gt;You should not need the server and port options for CSV. That's for using PC Files Server, which helps you to import Microsoft file types like Excel or Access. SAS can read CSV files directly.&amp;nbsp; As long as your SAS session can get to the path where the CSV sits, it should work.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954583#M372792</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2024-12-24T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954584#M372793</link>
      <description>&lt;P&gt;ChrisHemedinger, I am unable to run the code as it is throwing the same error. Do you have any other suggestions.&amp;nbsp;&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;</description>
      <pubDate>Tue, 24 Dec 2024 21:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954584#M372793</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2024-12-24T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954589#M372797</link>
      <description>&lt;P&gt;Your first PROC IMPORT step is accessing the server named WELSFGO.NETIZENS.BANK-DSb.COM via the SAS/ACCESS to PC-FILES process that is running on that machine.&amp;nbsp; The machine where SAS is running (not the machine you are using to run Enterprise Guide) is where the data is being imported into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that machine with the CSV file on it also running some&amp;nbsp; other server process, like an SFTP service or HTTP service?&amp;nbsp; If so you could use one of those methods to copy the file over to the machine where SAS is running.&amp;nbsp; You could then read the CSV with SAS code.&amp;nbsp; You could even let PROC IMPORT guess how to read the file if for some reason you do not know what is in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not then ask if the actual drive where the file you want lives is also mounted on the server where SAS is running.&amp;nbsp; Then you could just point to it directly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or have the drive that has the data made visible on the machine where you are running Enterprise Guide.&amp;nbsp; Then you could either use the EG tool for importing a CSV file to move it to the SAS server.&amp;nbsp; Or use the file upload task of Enterprise Guide to copy it to the SAS server.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 23:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954589#M372797</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-24T23:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954594#M372799</link>
      <description>&lt;P&gt;Post the&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;complete&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;(&lt;U&gt;all&lt;/U&gt; code and messages) log of the failing step by copy/pasting the text into a code box opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 01:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954594#M372799</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-12-25T01:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS syntax to import CSV file into SAS EG 9.4 using server name and port number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954612#M372808</link>
      <description>&lt;P&gt;Pulling data from a Windows server (WELSFGO.NETIZENS.BANK-DSb.COM) to your SAS Application server using EG is likely to be a permissions problem, not a syntax one. Your ACCESSCS program syntax looks OK. I suggest you engage with your SAS administrator as they have likely been involved in setting up this approach. Confirming your server name, port and folder share details is a good start. If this is a first time test then you could be blocked by server firewall rules. Only your IT folks can help with that as they need to make a rule change. By default servers usually block all communication ports, then add a rule for each port where traffic is allowed. Ask about a firewall rule for port 7845&amp;nbsp; on both servers.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 21:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-syntax-to-import-CSV-file-into-SAS-EG-9-4-using-server-name/m-p/954612#M372808</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-12-25T21:43:52Z</dc:date>
    </item>
  </channel>
</rss>

