<?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 CVS Raw Data File import in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518194#M6695</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cannot figure out how to import a cvs file.&amp;nbsp;Appreciate any help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options validvarname= any;&lt;/P&gt;&lt;P&gt;data Consumer;&lt;BR /&gt;proc import datafile="/courses/ddb976e5ba27fe300/NHANES 2013_2014/consumer.csv" out=Consumer dbms=csv replace;&lt;BR /&gt;getnames=no;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=Consumer;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: File WORK.CONSUMER.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Task if needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The codebook, which shows the variable labels and formats, is available at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/CBQ_H.htm" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/CBQ_H.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import the &lt;STRONG&gt;consumer.csv&lt;/STRONG&gt;data into a temporary SAS data set called Consumer. The data values represent SEQN,CBD070,CBD090,CBD110,CBD120, and CBD130, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variables in the Consumer data set should have permanently assigned variable labels.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 19:08:11 GMT</pubDate>
    <dc:creator>smart</dc:creator>
    <dc:date>2018-12-03T19:08:11Z</dc:date>
    <item>
      <title>CVS Raw Data File import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518194#M6695</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cannot figure out how to import a cvs file.&amp;nbsp;Appreciate any help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options validvarname= any;&lt;/P&gt;&lt;P&gt;data Consumer;&lt;BR /&gt;proc import datafile="/courses/ddb976e5ba27fe300/NHANES 2013_2014/consumer.csv" out=Consumer dbms=csv replace;&lt;BR /&gt;getnames=no;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=Consumer;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: File WORK.CONSUMER.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Task if needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The codebook, which shows the variable labels and formats, is available at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/CBQ_H.htm" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/CBQ_H.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import the &lt;STRONG&gt;consumer.csv&lt;/STRONG&gt;data into a temporary SAS data set called Consumer. The data values represent SEQN,CBD070,CBD090,CBD110,CBD120, and CBD130, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variables in the Consumer data set should have permanently assigned variable labels.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 19:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518194#M6695</guid>
      <dc:creator>smart</dc:creator>
      <dc:date>2018-12-03T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: CVS Raw Data File import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518218#M6699</link>
      <description>Comment your code and you'll find the error.</description>
      <pubDate>Mon, 03 Dec 2018 20:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518218#M6699</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-03T20:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: CVS Raw Data File import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518980#M6708</link>
      <description>&lt;P&gt;How do I do that?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 23:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518980#M6708</guid>
      <dc:creator>smart</dc:creator>
      <dc:date>2018-12-05T23:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: CVS Raw Data File import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518983#M6709</link>
      <description>&lt;P&gt;commenting your code means adding comments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS you can add a comment using *; or /* */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*this is my comment;

proc means data=sashelp.class; 
class sex ; /*this is another comment*/
run;&lt;/PRE&gt;
&lt;P&gt;It's considered good practice to comment your code. And I guarantee you'll save more time doing it because you'll find errors faster and avoid logical errors. And it's a good practice because it's hard to build in habits after you've already learned one way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So comment every line in your code with what you think it is&amp;nbsp;doing and you'll likely find your mistake. If not, past back with your code and comments and I'll tell you where the issue is.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 23:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CVS-Raw-Data-File-import/m-p/518983#M6709</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-05T23:23:35Z</dc:date>
    </item>
  </channel>
</rss>

