<?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: importing data in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297599#M1093</link>
    <description>&lt;P&gt;Maybe there is something wrong with my csv file then. &amp;nbsp;When I tried your suggestion Shmuel, I got the following message&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12964i998B203D8109F2CE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-09-11 at 9.49.13 AM.png" title="Screen Shot 2016-09-11 at 9.49.13 AM.png" /&gt;</description>
    <pubDate>Sun, 11 Sep 2016 13:50:32 GMT</pubDate>
    <dc:creator>timgpp</dc:creator>
    <dc:date>2016-09-11T13:50:32Z</dc:date>
    <item>
      <title>importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297563#M1089</link>
      <description>&lt;P&gt;I am trying to import data from a csv file into SAS studio. &amp;nbsp;When I run the program, the notes tell me that there were zero observations and two variables. &amp;nbsp;There are two variables, but there should be 39. &amp;nbsp;What am I doing wrong? &amp;nbsp;I have attached my code, as well as a screen shot&amp;nbsp;of my csv file. &amp;nbsp;Thank you for your help. &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CitynameSTinSAS;
infile "/folders/myfolders/CitynameSTforSAS.csv" dlm="," firstobs=2;
input Temp Met;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Tim Muhich&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12962i67F114A1BD678338/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-09-10 at 8.52.34 PM.png" title="Screen Shot 2016-09-10 at 8.52.34 PM.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12963i3F9BC584989BF458/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-09-10 at 8.52.34 PM.png" title="Screen Shot 2016-09-10 at 8.52.34 PM.png" /&gt;</description>
      <pubDate>Sun, 11 Sep 2016 01:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297563#M1089</guid>
      <dc:creator>timgpp</dc:creator>
      <dc:date>2016-09-11T01:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297564#M1090</link>
      <description>&lt;P&gt;You need to list your variables in the input statement. Since you only lost two variables that's all it reads.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 01:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297564#M1090</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-11T01:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297595#M1091</link>
      <description>&lt;P&gt;Thank you for replying. &amp;nbsp;I thought I had listed my variables; I only have two. &amp;nbsp;It is just not bringing the data along with them. &amp;nbsp;What am I missing in that statement to bring all of the temperature and metabolism data along with the variable names? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your time,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 13:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297595#M1091</guid>
      <dc:creator>timgpp</dc:creator>
      <dc:date>2016-09-11T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297598#M1092</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;Adding the option TRUNCOVER in infile statement, may help:&lt;BR /&gt;&lt;BR /&gt;data&lt;/SPAN&gt; CitynameSTinSAS&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"/folders/myfolders/CitynameSTforSAS.csv"&lt;/SPAN&gt; dlm&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;","&lt;/SPAN&gt; firstobs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2 &lt;STRONG&gt;TRUNCOVER&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; Temp Met&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Sep 2016 13:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297598#M1092</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-11T13:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297599#M1093</link>
      <description>&lt;P&gt;Maybe there is something wrong with my csv file then. &amp;nbsp;When I tried your suggestion Shmuel, I got the following message&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12964i998B203D8109F2CE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-09-11 at 9.49.13 AM.png" title="Screen Shot 2016-09-11 at 9.49.13 AM.png" /&gt;</description>
      <pubDate>Sun, 11 Sep 2016 13:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297599#M1093</guid>
      <dc:creator>timgpp</dc:creator>
      <dc:date>2016-09-11T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297601#M1094</link>
      <description>&lt;P&gt;Can you open your CSV file with a text editor and upload a screenshot of it ?&lt;/P&gt;&lt;P&gt;Are you sure that FIRSTOBS should be 2 ?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 14:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297601#M1094</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-11T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297605#M1095</link>
      <description>&lt;P&gt;Your error message is saying that there 221 bytes, but no records in file past the first line. &amp;nbsp;Perhaps your data is all on one line?&lt;/P&gt;
&lt;P&gt;Try just telling SAS to read the file and show you want is in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile '/folders/myfolders/CitynamesSTforSAS.csv' ;
  input;
  list;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can look and see what is there. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps the data is just all on one line?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile '/folders/myfolders/CitynamesSTforSAS.csv' dsd;
  input Temp Met @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Sep 2016 14:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297605#M1095</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-09-11T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297618#M1098</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/103827"&gt;@timgpp﻿&lt;/a&gt;&amp;nbsp;In your first post you included two screenshots of your error message but not a screenshot of your CSV.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Include either the CSV or at the minimum a screenshot for help. It's likely an easy solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 20:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297618#M1098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-11T20:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: importing data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297993#M1102</link>
      <description>&lt;P&gt;Thank you all for your help. &amp;nbsp;You were right. &amp;nbsp;It was the CSV file. &amp;nbsp;Only the first line of the Excel sheet saved for some reason ( Thanks Tom for the tip about 221 bytes). &amp;nbsp;I resaved the file as a CSV and it contained all the data. &amp;nbsp;Life is good. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/importing-data/m-p/297993#M1102</guid>
      <dc:creator>timgpp</dc:creator>
      <dc:date>2016-09-13T12:29:22Z</dc:date>
    </item>
  </channel>
</rss>

