<?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: How to import sas7bdat file to work library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756164#M238694</link>
    <description>&lt;P&gt;Do you use SAS on a server, or local?&lt;/P&gt;
&lt;P&gt;Which interface (Enterprise Guide, SAS Studio, Display Manager) do you use?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 12:13:48 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-07-23T12:13:48Z</dc:date>
    <item>
      <title>How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756160#M238693</link>
      <description>&lt;P&gt;I'm at work, and I can't create a new library due to permissions.&lt;/P&gt;&lt;P&gt;I need to transfer one file (sas7bdat format) that's on one folder in my computer to the work library in SAS. Whenever I open it in sas through Open-&amp;gt; Data, it's left on the "process flow" but it's not visible on the Work library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 11:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756160#M238693</guid>
      <dc:creator>catkat96</dc:creator>
      <dc:date>2021-07-23T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756164#M238694</link>
      <description>&lt;P&gt;Do you use SAS on a server, or local?&lt;/P&gt;
&lt;P&gt;Which interface (Enterprise Guide, SAS Studio, Display Manager) do you use?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 12:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756164#M238694</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-23T12:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756171#M238699</link>
      <description>&lt;P&gt;I'm using enterprise guide 7.15 locally&lt;/P&gt;&lt;P&gt;Edit: actually I'm not sure if it's locally or on a server. It's installed on my PC but I access the team's server to get datasets usually (not this case, clearly)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 12:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756171#M238699</guid>
      <dc:creator>catkat96</dc:creator>
      <dc:date>2021-07-23T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756182#M238704</link>
      <description>&lt;P&gt;I don't use EG but ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is already on the machine where SAS is running.&lt;/P&gt;
&lt;P&gt;I am not sure how/why they could prevent you from defining a new libref that points to the folder where SAS lives but you can always reference the file by its actual physical filename.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data="/some folder/mydataset.sas7bdat"; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the file is on your local machine and not accessible on the machine where SAS is running then I believe there should be a file upload tool in Enterprise Guide.&amp;nbsp; &amp;nbsp;See if you can use that to place the file into the WORK folder.&amp;nbsp; &amp;nbsp;You can use %sysfunc(pathname(WORK)) to find the path to where your current session's work folder is located.&amp;nbsp; Also if your SAS session is running on Unix then make sure you upload the file using a lowercase letters in the filename.&amp;nbsp; So if you uploaded mydataset.sas7bdat to your work folder you could this code to check it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work.mydataset; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jul 2021 13:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756182#M238704</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-23T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756195#M238706</link>
      <description>&lt;P&gt;When I try the first option the error message says "the physical file name is too long". What can I do if the path is long?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I tried the second option, the error mesage was "file work.filename.data not found"&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 13:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756195#M238706</guid>
      <dc:creator>catkat96</dc:creator>
      <dc:date>2021-07-23T13:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756203#M238711</link>
      <description>&lt;P&gt;So is your SAS session running on Unix or Windows?&amp;nbsp; Check the macro variables &amp;amp;SYSSCP and &amp;amp;SYSSCPL.&lt;/P&gt;
&lt;P&gt;Make sure you are using paths that reflect how to reference the files on that operating system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is running on Windows and the path is too long then that usually means you are referencing a network share.&amp;nbsp; So the trick to shorten the path is to mount a drive letter to include part of the path and use the driver letter in your references.&amp;nbsp; But that option is probably not going to be available to you without talking to the administrator of the machine where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS says dataset &lt;FONT face="courier new,courier"&gt;filename&lt;/FONT&gt; does not exist in the WORK directory then that means there is no file named &lt;FONT face="courier new,courier"&gt;filename.sas7bdat&lt;/FONT&gt; in that directory.&amp;nbsp; Remember that if SAS is running on Unix then filenames are case sensitive and SAS will only use lowercase letters.&amp;nbsp; So if the file is actually named with mixed or uppercase letters like&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Filename.sas7bdat&lt;/FONT&gt; or&amp;nbsp;&lt;FONT face="courier new,courier"&gt;FILENAME.SAS7BDAT&lt;/FONT&gt; then SAS will not see it as a dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 14:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756203#M238711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-23T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to import sas7bdat file to work library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756236#M238723</link>
      <description>Is there not an upload data task in EG?</description>
      <pubDate>Fri, 23 Jul 2021 15:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-sas7bdat-file-to-work-library/m-p/756236#M238723</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-23T15:08:09Z</dc:date>
    </item>
  </channel>
</rss>

