<?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: Trouble Reading Raw Da'y'ta Files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238906#M43912</link>
    <description>&lt;P&gt;&lt;A href="https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=2588" target="_blank"&gt;https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=2588&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 15:05:57 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-12-11T15:05:57Z</dc:date>
    <item>
      <title>Trouble Reading Raw Da'y'ta Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238810#M43881</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble reading this data as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Name has only single blanks between the first and last name.&lt;/LI&gt;&lt;LI&gt;Phone contains only digits (and is still a character value).&lt;/LI&gt;&lt;LI&gt;Data set Names_And_More contains a character an integer or a mixed number (such as 50 1/8).temporary SAS data set with a numeric variable number should be rounded to the nearest .001. Hint: Use the SCAN function with blanks and forward slashes (/) as delimiters.&lt;/LI&gt;&lt;LI&gt;Using the Names_And_More data set, create a temporary SAS data set containing the phone number (Phone) and the 3-digit area code (AreaCode). Be sure the length of AreaCode is 3. You may need to list a few observations in Names_And_More to see how Phone is stored.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Listing of Data Set LEARN.NAMES_AND_MORE&lt;/P&gt;&lt;P&gt;Name Phone Height Mixed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA LEARN.NAMES_AND_MORE;&lt;BR /&gt;INFILE DATALINES;&lt;BR /&gt;&lt;BR /&gt;DATALINES;&lt;BR /&gt;Roger Cody (908)782-1234 5ft. 10in. 50 1/8 
Thomas Jefferson (315) 848-8484 6ft. 1in. 23 1/2 
Marco Polo (800)123-4567 5Ft. 6in. 40 
Brian Watson (518)355-1766 5ft. 10in 89 3/4 
Michael DeMarco (445)232-2233 6ft. 76 1/3 &lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would fully appreciate if someone can help me,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 23:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238810#M43881</guid>
      <dc:creator>v_dangkh</dc:creator>
      <dc:date>2015-12-10T23:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading Raw Da'y'ta Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238815#M43883</link>
      <description>&lt;P&gt;Hmm, looks like you are trying to &lt;A href="https://www.sas.com/store/prodBK_60864_en.html" target="_self"&gt;Learn SAS By Example&lt;/A&gt; (with help from author Ron Cody). &amp;nbsp;Are you sure you want an answer from here? You won't learn very much that way!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 00:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238815#M43883</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-11T00:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading Raw Da'y'ta Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238816#M43884</link>
      <description>&lt;P&gt;Its for a school assignment, ive been trying so many methods but i cant get it to work.&lt;/P&gt;&lt;P&gt;Ive tried input @, #, column ranges, but the order is not correct &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 00:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238816#M43884</guid>
      <dc:creator>v_dangkh</dc:creator>
      <dc:date>2015-12-11T00:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading Raw Da'y'ta Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238888#M43905</link>
      <description>&lt;P&gt;The following code will get your data input. &amp;nbsp;This INPUT statement tells SAS to read each field as a character string of the specified length (ex: 20 for Name). &amp;nbsp;The &amp;amp; tells SAS that the field might contain an embedded blank and&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; to stop reading just for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data names_and_more;
   input Name $ 20.
         Phone &amp;amp; $ 14.
         Height &amp;amp; $ 10.
         Mixed &amp;amp; $ 8.;
datalines;
Roger   Cody        (908)782-1234  5ft. 10in.  50 1/8
Thomas  Jefferson   (315) 848-8484  6ft. 1in.  23 1/2
Marco Polo          (800)123-4567  5Ft. 6in.  40
Brian Watson        (518)355-1766  5ft. 10in  89 3/4
Michael DeMarco     (445)232-2233  6ft.       76 1/3
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't feel bad about giving this much to you, because this is supplied with the book materials as example code. &amp;nbsp;However, your task is to parse out the phone number and measurements into their component parts so that you can perform calculations, categorize by area code, etc. &amp;nbsp;I don't want to rob you of that learning opportunity, but I'll give you a hint about the fractions: it &lt;A href="http://www.sascommunity.org/wiki/Create_an_Informat_from_a_User-Defined_Function" target="_self"&gt;comes from our friends at sasCommunity.org&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 12:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238888#M43905</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-11T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading Raw Da'y'ta Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238906#M43912</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=2588" target="_blank"&gt;https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=2588&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 15:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-Reading-Raw-Da-y-ta-Files/m-p/238906#M43912</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-12-11T15:05:57Z</dc:date>
    </item>
  </channel>
</rss>

