<?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: Variables (chra) mixed with the observation(numeric) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895732#M39831</link>
    <description>&lt;P&gt;Thank you so much. The issue with the code it resolved now.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 17:25:29 GMT</pubDate>
    <dc:creator>nana_confused</dc:creator>
    <dc:date>2023-09-25T17:25:29Z</dc:date>
    <item>
      <title>Variables (chra) mixed with the observation(numeric)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895606#M39826</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA CoImpt.disabilities;&lt;BR /&gt;INFILE "/home/u63555769/Project/Data/1_Source/disabilities.txt" delimiter ='&amp;amp;' ;&lt;BR /&gt;INPUT tract_fips $10.&lt;BR /&gt;pctn_disability :$4.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;tract_fips and&amp;nbsp;disability&amp;nbsp; appeared as the first observation. It suppose to be the header. Any suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 22:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895606#M39826</guid>
      <dc:creator>nana_confused</dc:creator>
      <dc:date>2023-09-24T22:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables (chra) mixed with the observation(numeric)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895608#M39827</link>
      <description>&lt;P&gt;If you don't want to read the first line of the text file then use FIRSTOBS=2 option on the INFILE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also do NOT use formatted mode input for the first variable.&amp;nbsp; Use LIST MODE like you did for the second variable.&amp;nbsp; Add the : modifier in front of both informats.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CoImpt.disabilities;
  infile "/home/u63555769/Project/Data/1_Source/disabilities.txt" dlm='&amp;amp;' firstobs=2;
  input tract_fips :$10. pctn_disability :$4.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or remove the informats and DEFINE the variable before using them in the INPUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CoImpt.disabilities;
  infile "/home/u63555769/Project/Data/1_Source/disabilities.txt" dlm='&amp;amp;' firstobs=2;
  length tract_fips $10 pctn_disability $4;
  input tract_fips pctn_disability ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Sep 2023 22:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895608#M39827</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-24T22:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variables (chra) mixed with the observation(numeric)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895732#M39831</link>
      <description>&lt;P&gt;Thank you so much. The issue with the code it resolved now.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 17:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variables-chra-mixed-with-the-observation-numeric/m-p/895732#M39831</guid>
      <dc:creator>nana_confused</dc:creator>
      <dc:date>2023-09-25T17:25:29Z</dc:date>
    </item>
  </channel>
</rss>

