<?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 Creating a SAS Data Set from a Space-delimited Raw Data File in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517938#M6688</link>
    <description>&lt;P&gt;The SAS help community has always been very valuable for a beginner&amp;nbsp;like me. Hoping someone can take the time to please help me again! Here is my code thus far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename rawdata '/courses/ddb976e5ba27fe300/NHANES 2013_2014/alcohol.dat';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data Alcohol (keep = SEQN ALQ120Q);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;infile rawdata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc print data=Alcohol;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***I have no errors, but this warning keeps popping up "&lt;SPAN&gt;The table "WORK.ALCOHOL" cannot be opened because it does not contain any columns."***&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;Here is my task if more information is needed on what I am trying to do:&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/ALQ_H.htm#SEQN" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/ALQ_H.htm#SEQN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import the &lt;STRONG&gt;alcohol.dat&amp;nbsp;&lt;/STRONG&gt;data into a temporary SAS data set called Alcohol. The alcohol.dat file is stored in the &lt;STRONG&gt;/courses/ddb976e5ba27fe300/NHANES 2013_2014&lt;/STRONG&gt;folder. The data values represent SEQN, ALQ101, ALQ110, ALQ120Q, ALQ120U, ALQ130, ALQ141Q, ALQ141U, ALQ151, and ALQ160, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The alcohol data set should contain only the following variables:&lt;/P&gt;&lt;P&gt;Sequence Number and Number of Drinks Per Day for the Past 12 Months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two variables in the Alcohol data set should have permanently assigned variable labels.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Dec 2018 23:38:56 GMT</pubDate>
    <dc:creator>smart</dc:creator>
    <dc:date>2018-12-02T23:38:56Z</dc:date>
    <item>
      <title>Creating a SAS Data Set from a Space-delimited Raw Data File</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517938#M6688</link>
      <description>&lt;P&gt;The SAS help community has always been very valuable for a beginner&amp;nbsp;like me. Hoping someone can take the time to please help me again! Here is my code thus far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename rawdata '/courses/ddb976e5ba27fe300/NHANES 2013_2014/alcohol.dat';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data Alcohol (keep = SEQN ALQ120Q);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;infile rawdata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc print data=Alcohol;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***I have no errors, but this warning keeps popping up "&lt;SPAN&gt;The table "WORK.ALCOHOL" cannot be opened because it does not contain any columns."***&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;Here is my task if more information is needed on what I am trying to do:&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/ALQ_H.htm#SEQN" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2013-2014/ALQ_H.htm#SEQN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import the &lt;STRONG&gt;alcohol.dat&amp;nbsp;&lt;/STRONG&gt;data into a temporary SAS data set called Alcohol. The alcohol.dat file is stored in the &lt;STRONG&gt;/courses/ddb976e5ba27fe300/NHANES 2013_2014&lt;/STRONG&gt;folder. The data values represent SEQN, ALQ101, ALQ110, ALQ120Q, ALQ120U, ALQ130, ALQ141Q, ALQ141U, ALQ151, and ALQ160, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The alcohol data set should contain only the following variables:&lt;/P&gt;&lt;P&gt;Sequence Number and Number of Drinks Per Day for the Past 12 Months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two variables in the Alcohol data set should have permanently assigned variable labels.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 23:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517938#M6688</guid>
      <dc:creator>smart</dc:creator>
      <dc:date>2018-12-02T23:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS Data Set from a Space-delimited Raw Data File</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517939#M6689</link>
      <description>&lt;P&gt;You're missing an INPUT statement listing the variables - add that and you should be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the full syntax here -&amp;gt;&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0oaql83drile0n141pdacojq97s.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0oaql83drile0n141pdacojq97s.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 00:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517939#M6689</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-12-03T00:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SAS Data Set from a Space-delimited Raw Data File</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517963#M6690</link>
      <description>&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-do-i-read-in-a-delimited-ascii-file-in-sas/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-do-i-read-in-a-delimited-ascii-file-in-sas/&lt;/A&gt;</description>
      <pubDate>Mon, 03 Dec 2018 04:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-SAS-Data-Set-from-a-Space-delimited-Raw-Data-File/m-p/517963#M6690</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-03T04:18:30Z</dc:date>
    </item>
  </channel>
</rss>

