<?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 New SAS student in need of some help in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834218#M35847</link>
    <description>&lt;P&gt;Hi, so I am trying to use data step to read in the csv. file. I am looking for options in the INFILE statement and INFORMAT/FORMAT to use to make sure that I create the datasets correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run it but the sex, name and race can out as dots.&lt;/P&gt;&lt;P&gt;I am new to SAS and a quick response would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/96368"&gt;@SAS5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 06:35:08 GMT</pubDate>
    <dc:creator>iyinope</dc:creator>
    <dc:date>2022-09-20T06:35:08Z</dc:date>
    <item>
      <title>New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834218#M35847</link>
      <description>&lt;P&gt;Hi, so I am trying to use data step to read in the csv. file. I am looking for options in the INFILE statement and INFORMAT/FORMAT to use to make sure that I create the datasets correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run it but the sex, name and race can out as dots.&lt;/P&gt;&lt;P&gt;I am new to SAS and a quick response would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/96368"&gt;@SAS5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 06:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834218#M35847</guid>
      <dc:creator>iyinope</dc:creator>
      <dc:date>2022-09-20T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834220#M35848</link>
      <description>&lt;P&gt;Please post the code you have, so that we can suggest fixes.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834220#M35848</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-09-20T07:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834276#M35856</link>
      <description>&lt;P&gt;SAS, by default, will show a "dot" to represent a missing value for a numeric variable.&lt;/P&gt;
&lt;P&gt;Typical causes would be values in the file that are read as numeric values that are not actually numeric such as "N/A" or "&amp;gt;45" or that are missing in the source file. If you see "Invalid data" messages in the log then then your values are not compatible with how you attempt to read the&amp;nbsp; data. Without details it is extremely hard to make suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best for debugging your particular problems are to go to the LOG. You can share the log by copying text of the program code you ran along with all the messages and notes. Then on the this forum open a text box using the &amp;lt;/&amp;gt; icon that appears above the message window and pasting the copied text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The text box is important because the main message window on this forum will reformat pasted text which can reduce the usefulness of the diagnostic messages SAS often provides for problems with code or data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 13:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834276#M35856</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-20T13:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834303#M35857</link>
      <description>&lt;P&gt;There is no need to attach files to share TEXT.&amp;nbsp; Use the Insert Code button in the forum editor window to get a pop-up window where you can paste/edit the text.&lt;/P&gt;
&lt;PRE&gt;ID_NUM,NAME,DOB,Sex,Race,MARITAL,OWNHOME,EDUCATION,EMPLOYED
110126,LLLLLLLL,2/23/1943,1,1,4,2,5,1
110010,AAAAAAAA,3/20/1954,1,3,3,1,7,4
110020,BBBBBBBB,8/1/1948,1,1,3,1,7,1
110031,CCCCCCCC,12/11/1952,1,1,3,1,5,1
110032,DDDDDDDD,8/1/1944,2,2,3,1,7,1
110037,EEEEEEEE,9/26/1968,1,1,3,1,5,1
110068,FFFFFFFF,10/9/1953,2,1,2,1,7,1
110075,GGGGGGGG,8/12/1942,2,1,3,1,7,4
110090,HHHHHHHH,8/7/1959,2,2,5,2,2,4
110098,IIIIIIII,2/16/1970,1,1,6,2,3,1
110120,JJJJJJJJ,11/22/1955,1,2,2,2,3,2
110121,KKKKKKKK,7/10/1946,1,1,3,1,3,1&lt;/PRE&gt;
&lt;P&gt;Your file looks like a normal CSV (comma separated values) file.&lt;/P&gt;
&lt;P&gt;You can easily write a DATA step to read such a file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   infile 'Personal.csv' dsd truncover firstobs=2;
   input
     ID_NUM :$6.
     NAME :$20.
     DOB :mmddyy. 
     Sex Race MARITAL OWNHOME EDUCATION EMPLOYED
   ;
   format DOB yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834303#M35857</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-20T15:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834307#M35858</link>
      <description>FYI - answers we give here likely won't match what you're being taught in courses.</description>
      <pubDate>Tue, 20 Sep 2022 15:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/834307#M35858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-20T15:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/837190#M36138</link>
      <description>Yes, thank you so much.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/837190#M36138</guid>
      <dc:creator>iyinope</dc:creator>
      <dc:date>2022-10-06T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: New SAS student in need of some help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/837192#M36139</link>
      <description>hmmmmm&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-SAS-student-in-need-of-some-help/m-p/837192#M36139</guid>
      <dc:creator>iyinope</dc:creator>
      <dc:date>2022-10-06T15:54:52Z</dc:date>
    </item>
  </channel>
</rss>

