<?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 How to read data set downloaded to SAS 9.4? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517941#M3467</link>
    <description>&lt;P&gt;I use SAS 9.4 and am trying to import a file with sas7bdat. I have the file and I've done this before but every time I try to import it, it comes up showing 1 observation and 0 variables. There should be 12 observations and 4 variables. This is what I put in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME quiz "C:\Users\OneDrive\Desktop\BIST0535";
DATA quiz.sbp_2;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Now sbp_2 has 12 observations and 4 variables, but this is the answer I got out:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The data set QUIZ.SBP_2 has 1 observations and 0 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;but it's the correct file name and everything and I can't figure out why it is erasing my variables. Please Help!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 00:45:21 GMT</pubDate>
    <dc:creator>nmy15</dc:creator>
    <dc:date>2018-12-03T00:45:21Z</dc:date>
    <item>
      <title>How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517941#M3467</link>
      <description>&lt;P&gt;I use SAS 9.4 and am trying to import a file with sas7bdat. I have the file and I've done this before but every time I try to import it, it comes up showing 1 observation and 0 variables. There should be 12 observations and 4 variables. This is what I put in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME quiz "C:\Users\OneDrive\Desktop\BIST0535";
DATA quiz.sbp_2;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Now sbp_2 has 12 observations and 4 variables, but this is the answer I got out:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The data set QUIZ.SBP_2 has 1 observations and 0 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;but it's the correct file name and everything and I can't figure out why it is erasing my variables. Please Help!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 00:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517941#M3467</guid>
      <dc:creator>nmy15</dc:creator>
      <dc:date>2018-12-03T00:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517942#M3468</link>
      <description>&lt;P&gt;If you already have a sas7bdat file then that is already a SAS data set - you don't need to "import" it at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to copy it to another data set then you need a SET statement; what's happening in your code is that, assuming the original file is called sbp_2 then you're overwriting it with a blank file because of the absence of a SET statement.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 01:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517942#M3468</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-12-03T01:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517943#M3469</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/249525"&gt;@nmy15&lt;/a&gt;&amp;nbsp;welcome to the sas community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please follow the instructions in this video on how to read external files into sas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/4573016758001/creating-a-sas-table-from-a-csv-file" target="_blank"&gt;https://video.sas.com/detail/video/4573016758001/creating-a-sas-table-from-a-csv-file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 01:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517943#M3469</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-12-03T01:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517958#M3470</link>
      <description>&lt;P&gt;If you already ran this, you destroyed your data set and first need to recreate it before proceeding. This means re-downloading the file from where you originally got it or restoring it somehow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some concepts for you:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Libname - think of this as a path to your SAS data sets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A data step should be as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data OutputDataName;
set InputDataName;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that since you used the code data quiz.sbp_2 instead of in the SET statement you accidentally overwrote it. So once you actually recreate it you'll be good to go.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname quiz 'path to folder';

data quiz;
set quiz.sbp_2;
run;

proc print data=quiz;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/249525"&gt;@nmy15&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I use SAS 9.4 and am trying to import a file with sas7bdat. I have the file and I've done this before but every time I try to import it, it comes up showing 1 observation and 0 variables. There should be 12 observations and 4 variables. This is what I put in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME quiz "C:\Users\OneDrive\Desktop\BIST0535";
DATA quiz.sbp_2;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Now sbp_2 has 12 observations and 4 variables, but this is the answer I got out:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The data set QUIZ.SBP_2 has 1 observations and 0 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;but it's the correct file name and everything and I can't figure out why it is erasing my variables. Please Help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 03:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/517958#M3470</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-03T03:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/519298#M3755</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/519298#M3755</guid>
      <dc:creator>nmy15</dc:creator>
      <dc:date>2018-12-06T22:09:43Z</dc:date>
    </item>
  </channel>
</rss>

