<?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: Import csv into sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635282#M188613</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Annotation 2020-03-27 191708.png" style="width: 948px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37444i9724DEA96AE40C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-03-27 191708.png" alt="Annotation 2020-03-27 191708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-03-27 1917081.png" style="width: 602px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37445i00A03BABD7951270/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-03-27 1917081.png" alt="Annotation 2020-03-27 1917081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes, there is an upload button between the three dots and the delete button. I uploaded the file and insert the file path into the codes below&lt;/P&gt;&lt;P&gt;FILENAME CSV "/Users/MY035/My Folder/Testing1.csv" TERMSTR=LF;&lt;/P&gt;&lt;P&gt;/** Import the CSV file. **/&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=CSV&lt;BR /&gt;OUT=WORK.MYCSV&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/** Print the results. **/&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.MYCSV; RUN;&lt;/P&gt;&lt;P&gt;/** Unassign the file reference. **/&lt;/P&gt;&lt;P&gt;FILENAME CSV;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME CSV "/Users/MY035/My Folder/Testing1.csv" TERMSTR=CRLF;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC IMPORT DATAFILE=CSV&lt;BR /&gt;OUT=WORK.MYCSV&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/** Print the results. **/&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.MYCSV; RUN;&lt;/P&gt;&lt;P&gt;/** Unassign the file reference. **/&lt;/P&gt;&lt;P&gt;FILENAME CSV;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But both codes showed the same results, it still cannot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 11:23:27 GMT</pubDate>
    <dc:creator>SungPing</dc:creator>
    <dc:date>2020-03-27T11:23:27Z</dc:date>
    <item>
      <title>Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635233#M188589</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have two SAS Viya modules which are&amp;nbsp;&lt;SPAN&gt;SAS® Visual Data Mining and Machine Learning and&amp;nbsp;SAS® Visual Analytics and my storage is at 'my folder'. I unable to import csv file from my local disk and i checked that the csv file that i want to import is in the path that i write in the code. I able to upload it in SAS University Edition but i enable to upload it with the use of SAS Viya. Here is the log,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 /** FOR CSV Files uploaded from Windows **/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 FILENAME CSV "C:\Users\user\Desktop\SASUniversityEdition\myfolders\Testing2.csv" TERMSTR=CRLF;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 /** Import the CSV file. **/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 PROC IMPORT DATAFILE=CSV&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 OUT=WORK.MYCSV&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 DBMS=CSV&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 REPLACE;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 RUN;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;WORK.PARMS.PARMS.SLIST.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;WARNING: Physical file does not exist,&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;/opt/sas/viya/config/var/run/compsrv/default/a06c76f7-1bec-4f6e-aa80-12f984a485f1/C:\Users\user\Desktop\SASUniversityEdition\myfolde&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;rs\Testing2.csv.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.05 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.09 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 /** Print the results. **/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 PROC PRINT DATA=WORK.MYCSV; RUN;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.MYCSV.DATA does not exist.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;93&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;94 /** Unassign the file reference. **/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;95&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96 FILENAME CSV;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Fileref CSV has been deassigned.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;97&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;98&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;112&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 08:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635233#M188589</guid>
      <dc:creator>SungPing</dc:creator>
      <dc:date>2020-03-27T08:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635242#M188591</link>
      <description>&lt;P&gt;One thing is certain:&lt;/P&gt;
&lt;P&gt;The file&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;/opt/sas/viya/config/var/run/compsrv/default/a06c76f7-1bec-4f6e-aa80-12f984a485f1&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#0000FF"&gt;/&lt;/FONT&gt;C:\Users\user\Desktop\SASUniversityEdition\myfolders\&lt;/FONT&gt;Testing2.csv.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;does not exist.&lt;/P&gt;
&lt;P&gt;You are mixing a unix path (in blue) and a windows path (in red).&lt;/P&gt;
&lt;P&gt;Where is your file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this evidence is also what the log reads unambiguously:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;WARNING: Physical file does not exist&lt;/FONT&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;</description>
      <pubDate>Fri, 27 Mar 2020 09:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635242#M188591</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-27T09:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635255#M188598</link>
      <description>&lt;P&gt;Your Viya runs on a UNIX system, using Windows names will not work.&lt;/P&gt;
&lt;P&gt;You need to upload your file to the Viya system first, so the SAS process running there has access to it.&lt;/P&gt;
&lt;P&gt;Doesn't the interface provide a means for uploading?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 10:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635255#M188598</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-27T10:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635282#M188613</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Annotation 2020-03-27 191708.png" style="width: 948px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37444i9724DEA96AE40C0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-03-27 191708.png" alt="Annotation 2020-03-27 191708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-03-27 1917081.png" style="width: 602px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37445i00A03BABD7951270/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-03-27 1917081.png" alt="Annotation 2020-03-27 1917081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes, there is an upload button between the three dots and the delete button. I uploaded the file and insert the file path into the codes below&lt;/P&gt;&lt;P&gt;FILENAME CSV "/Users/MY035/My Folder/Testing1.csv" TERMSTR=LF;&lt;/P&gt;&lt;P&gt;/** Import the CSV file. **/&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE=CSV&lt;BR /&gt;OUT=WORK.MYCSV&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/** Print the results. **/&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.MYCSV; RUN;&lt;/P&gt;&lt;P&gt;/** Unassign the file reference. **/&lt;/P&gt;&lt;P&gt;FILENAME CSV;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME CSV "/Users/MY035/My Folder/Testing1.csv" TERMSTR=CRLF;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC IMPORT DATAFILE=CSV&lt;BR /&gt;OUT=WORK.MYCSV&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/** Print the results. **/&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.MYCSV; RUN;&lt;/P&gt;&lt;P&gt;/** Unassign the file reference. **/&lt;/P&gt;&lt;P&gt;FILENAME CSV;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But both codes showed the same results, it still cannot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635282#M188613</guid>
      <dc:creator>SungPing</dc:creator>
      <dc:date>2020-03-27T11:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635286#M188616</link>
      <description>&lt;P&gt;Please post the log from one of these import steps; use the &amp;lt;/&amp;gt; button for posting log text.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635286#M188616</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-27T11:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635290#M188619</link>
      <description>&lt;PRE&gt;1     OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75    
76    FILENAME CSV "/Users/MY035/My Folder/Testing1.csv" TERMSTR=CRLF;
77    
78    
79    PROC IMPORT DATAFILE=CSV
80        OUT=WORK.MYCSV
81        DBMS=CSV
82        REPLACE;
83    RUN;
NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to 
WORK.PARMS.PARMS.SLIST.
WARNING: Physical file does not exist, /Users/MY035/My Folder/Testing1.csv. 
ERROR: Import unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.06 seconds
      cpu time            0.10 seconds
      
84    
85    /** Print the results. **/
86    
87    PROC PRINT DATA=WORK.MYCSV; RUN;
ERROR: File WORK.MYCSV.DATA does not exist.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      
88    
89    /** Unassign the file reference.  **/
90    
91    FILENAME CSV;
NOTE: Fileref CSV has been deassigned.
92    
93    
94    OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
107   &lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635290#M188619</guid>
      <dc:creator>SungPing</dc:creator>
      <dc:date>2020-03-27T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635310#M188628</link>
      <description>With VIYA you need to define a filename using their special filename engine to be able to find the file. I don't remember the syntax since I don't use VIYA, but this question has been asked and answered on this forum before.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2020 13:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635310#M188628</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-27T13:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635378#M188647</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;'s answer made me go searching, and I found this:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0qapul7pyz9hmn0zfoefj0c278a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0qapul7pyz9hmn0zfoefj0c278a.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 16:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635378#M188647</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-27T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635474#M188682</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt; Should there be a Viya programming community? The SAS language is different.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 04:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635474#M188682</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-28T04:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635685#M188779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;- it's true that there are new elements in SAS Viya (especially with CAS actions and specific procedures in CAS).&amp;nbsp; But most existing SAS code (including PROC IMPORT) can work in a SAS Viya environment.&amp;nbsp; This is especially true in SAS Viya 3.5 and later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm not opposed to a SAS Viya (or CAS) board...but I don't want to fragment discussions if we don't need to.&amp;nbsp; New users who are working in SAS Viya can benefit from the expertise of all of those contributing general SAS programming solutions.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 20:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-csv-into-sas/m-p/635685#M188779</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-03-29T20:03:19Z</dc:date>
    </item>
  </channel>
</rss>

