<?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 from shared drive in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640373#M190733</link>
    <description>&lt;P&gt;This is only part of the log. Te whole log, when I run the %put via Enterprise Guide, is this:&lt;/P&gt;
&lt;PRE&gt;1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programm (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Prozessfluss';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         ODS LISTING GPATH=&amp;amp;sasworklocation;
15         FILENAME EGSR TEMP;
16         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
17             STYLE=EGDefault
18             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/EGDefault.css")
19             NOGTITLE
20             NOGFOOTNOTE
21             GPATH=&amp;amp;sasworklocation
22             ENCODING=UTF8
23             options(rolap="on")
24         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
25         
26         GOPTIONS ACCESSIBLE;
27         %put &amp;amp;sysscp;
AIX 64
28         
29         GOPTIONS NOACCESSIBLE;
30         %LET _CLIENTTASKLABEL=;
31         %LET _CLIENTPROCESSFLOWNAME=;
32         %LET _CLIENTPROJECTPATH=;
33         %LET _CLIENTPROJECTPATHHOST=;
34         %LET _CLIENTPROJECTNAME=;
35         %LET _SASPROGRAMFILE=;
36         %LET _SASPROGRAMFILEHOST=;
37         
38         ;*';*";*/;quit;run;
39         ODS _ALL_ CLOSE;
40         
41         
42         QUIT; RUN;
43         
&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Apr 2020 11:07:17 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-16T11:07:17Z</dc:date>
    <item>
      <title>Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640265#M190658</link>
      <description>&lt;P&gt;Trying to import an excel workbook from a shared drive (local file server) into SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I got so far with error -&amp;nbsp;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import out = test&lt;BR /&gt;datafile = "\\xxxx.xxx.xxxx.xx\shared\test.xlsx"&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;GETNAMES=NO;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 04:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640265#M190658</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2020-04-16T04:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640266#M190659</link>
      <description>&lt;P&gt;Where is SAS installed, locally or on a server?&lt;/P&gt;
&lt;P&gt;The path has to be relative to the SAS installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323303"&gt;@ywon111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Trying to import an excel workbook from a shared drive (local file server) into SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I got so far with error -&amp;nbsp;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = test&lt;BR /&gt;datafile = "\\xxxx.xxx.xxxx.xx\shared\test.xlsx"&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;GETNAMES=NO;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 04:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640266#M190659</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-16T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640268#M190661</link>
      <description>Thanks for the quick response.&lt;BR /&gt;Think it is installed on a server. How can I change the codes to import the excel file?</description>
      <pubDate>Thu, 16 Apr 2020 04:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640268#M190661</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2020-04-16T04:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640269#M190662</link>
      <description>&lt;P&gt;You'll have to make sure the server has access to the shared drive and know how to access it from there. Unfortunately that usually requires talking to your IT area to understand how it's set up. A drive you see on your desktop could be the M drive for example but it could be mapped to G on the server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other method, is if you can find the file in Servers Files and Folders Pane (SAS Studio) you can then right click it and find the path and use that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using SAS Base or EG there are similar methods to find the path.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 04:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640269#M190662</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-16T04:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640286#M190673</link>
      <description>&lt;P&gt;Please run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysscp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and post the log from it. This will reveal the operating system of your SAS server.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 07:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640286#M190673</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640288#M190675</link>
      <description>Part of the log shows this, does it mean it is C drive?&lt;BR /&gt;&lt;BR /&gt;STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Apr 2020 07:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640288#M190675</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2020-04-16T07:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640291#M190678</link>
      <description>&lt;P&gt;No, that's only a message from the Enterprise Guide to itself where to fetch the stylesheet for displaying the output. It is part of the ODS tagsets.sasreport13 statement.&lt;/P&gt;
&lt;P&gt;I am interested in the result of the %put, on University Edition it looks like this:&lt;/P&gt;
&lt;PRE&gt; 73         %put &amp;amp;sysscp;
 LIN X64
 &lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 07:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640291#M190678</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T07:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640369#M190730</link>
      <description>&lt;P&gt;This is what I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14 FILENAME EGSR TEMP;&lt;BR /&gt;15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;16 STYLE=HtmlBlue&lt;BR /&gt;17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;18 NOGTITLE&lt;BR /&gt;19 NOGFOOTNOTE&lt;BR /&gt;20 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;21 ENCODING=UTF8&lt;BR /&gt;22 options(rolap="on")&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 10:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640369#M190730</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2020-04-16T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640373#M190733</link>
      <description>&lt;P&gt;This is only part of the log. Te whole log, when I run the %put via Enterprise Guide, is this:&lt;/P&gt;
&lt;PRE&gt;1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programm (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Prozessfluss';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         ODS LISTING GPATH=&amp;amp;sasworklocation;
15         FILENAME EGSR TEMP;
16         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
17             STYLE=EGDefault
18             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/EGDefault.css")
19             NOGTITLE
20             NOGFOOTNOTE
21             GPATH=&amp;amp;sasworklocation
22             ENCODING=UTF8
23             options(rolap="on")
24         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
25         
26         GOPTIONS ACCESSIBLE;
27         %put &amp;amp;sysscp;
AIX 64
28         
29         GOPTIONS NOACCESSIBLE;
30         %LET _CLIENTTASKLABEL=;
31         %LET _CLIENTPROCESSFLOWNAME=;
32         %LET _CLIENTPROJECTPATH=;
33         %LET _CLIENTPROJECTPATHHOST=;
34         %LET _CLIENTPROJECTNAME=;
35         %LET _SASPROGRAMFILE=;
36         %LET _SASPROGRAMFILEHOST=;
37         
38         ;*';*";*/;quit;run;
39         ODS _ALL_ CLOSE;
40         
41         
42         QUIT; RUN;
43         
&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640373#M190733</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640387#M190736</link>
      <description>1 The SAS System 22:37 Thursday, April 16, 2020&lt;BR /&gt;&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='';&lt;BR /&gt;6 %LET _CLIENTPROJECTPATHHOST='';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14 FILENAME EGSR TEMP;&lt;BR /&gt;15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;16 STYLE=HtmlBlue&lt;BR /&gt;17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;18 NOGTITLE&lt;BR /&gt;19 NOGFOOTNOTE&lt;BR /&gt;20 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;21 ENCODING=UTF8&lt;BR /&gt;22 options(rolap="on")&lt;BR /&gt;23 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;24&lt;BR /&gt;25 GOPTIONS ACCESSIBLE;&lt;BR /&gt;26 %put &amp;amp;sysscp;&lt;BR /&gt;LIN X64&lt;BR /&gt;27&lt;BR /&gt;28 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;29 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;30 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;31 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;32 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;33 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;34 %LET _SASPROGRAMFILE=;&lt;BR /&gt;35 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;36&lt;BR /&gt;37 ;*';*";*/;quit;run;&lt;BR /&gt;38 ODS _ALL_ CLOSE;&lt;BR /&gt;39&lt;BR /&gt;40&lt;BR /&gt;41 QUIT; RUN;&lt;BR /&gt;42&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640387#M190736</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2020-04-16T11:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640390#M190740</link>
      <description>&lt;P&gt;So your SAS runs on a Linux server. Ask your SAS administrator if your network share is mounted on that server, and if yes, what the Linux path to it is.&lt;/P&gt;
&lt;P&gt;Something like&lt;/P&gt;
&lt;PRE&gt;/mnt/location&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;/shared/location&lt;/PRE&gt;
&lt;P&gt;Note that all these start with a forward slash; this means that they are&amp;nbsp;&lt;EM&gt;absolute&lt;/EM&gt; path names starting at the system root. See&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Unix_filesystem" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Unix_filesystem&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640390#M190740</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import from shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640465#M190781</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323303"&gt;@ywon111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Trying to import an excel workbook from a shared drive (local file server) into SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I got so far with error -&amp;nbsp;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out = test&lt;BR /&gt;datafile = "\\xxxx.xxx.xxxx.xx\shared\test.&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;xlsx&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;"&lt;BR /&gt;DBMS=&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;CSV&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt; REPLACE;&lt;BR /&gt;GETNAMES=NO;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your import code says the file is CSV but the file name is xlsx. It is entirely possible that you source file is not actually CSV. In which case you are telling Import to attempt to read a simple text file structure that is not the same as in XLSX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you open that source file in a simple text editor (NOT Excel) such as Notepad? If you do an do not see values separated by commas then the file is in a different format and you need to use the correct DBMS value.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-from-shared-drive/m-p/640465#M190781</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-16T14:49:02Z</dc:date>
    </item>
  </channel>
</rss>

