<?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: input statement issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495683#M130871</link>
    <description>&lt;P&gt;You will have to show the actual program you ran that contains the problem.&amp;nbsp; This program does not have the problem you describe.&amp;nbsp; It reads everything in columns 1 through 18 as the value of FULLNAME, blanks included.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 13:56:59 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-09-14T13:56:59Z</dc:date>
    <item>
      <title>input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495562#M130798</link>
      <description>&lt;P&gt;I am encountering an issue with my input statement that is dealing with space in the raw file. I have a raw file that has the first and last name but there exists a space in between them. I want to read them as a fullname but the space delimiter in between is causing the character to spill into the next variable which is city. How would one go about reading the fullname in such a situation? I currently have the following statement :&lt;/P&gt;&lt;P&gt;DATA HW2.PRES1;&lt;BR /&gt;INFILE PRES1;&lt;BR /&gt;INPUT FULLNAME $18. CITY $15. STATE $15. ASP 2. BOD DATE9. TERM&amp;nbsp; VOTES&amp;nbsp; &amp;nbsp;PERCVOTE;&lt;BR /&gt;CARDS;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 02:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495562#M130798</guid>
      <dc:creator>MarcusX</dc:creator>
      <dc:date>2018-09-14T02:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495563#M130799</link>
      <description>Do you have two or more blank spaces between last name and city? can you confirm this?

Also post a sample plz</description>
      <pubDate>Fri, 14 Sep 2018 02:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495563#M130799</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-14T02:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495569#M130802</link>
      <description>&lt;P&gt;if your records are fixed position this will work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input @1 name $18. @19 city $;
cards;
myself,only       here
you,and,i,        there
stuff,1           nowhere
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 03:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495569#M130802</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-14T03:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495572#M130804</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input @1 name $18. @19 city $ state $;
cards;
myself,only       here              AK
you,and,i,        there ID
stuff,1           nowhere  UK
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 04:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495572#M130804</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-14T04:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495683#M130871</link>
      <description>&lt;P&gt;You will have to show the actual program you ran that contains the problem.&amp;nbsp; This program does not have the problem you describe.&amp;nbsp; It reads everything in columns 1 through 18 as the value of FULLNAME, blanks included.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495683#M130871</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-09-14T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495727#M130902</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166840"&gt;@MarcusX&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am encountering an issue with my input statement that is dealing with space in the raw file. I have a raw file that has the first and last name but there exists a space in between them. I want to read them as a fullname but the space delimiter in between is causing the character to spill into the next variable which is city. How would one go about reading the fullname in such a situation? I currently have the following statement :&lt;/P&gt;
&lt;P&gt;DATA HW2.PRES1;&lt;BR /&gt;INFILE PRES1;&lt;BR /&gt;INPUT FULLNAME $18. CITY $15. STATE $15. ASP 2. BOD DATE9. TERM&amp;nbsp; VOTES&amp;nbsp; &amp;nbsp;PERCVOTE;&lt;BR /&gt;CARDS;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would read the name as components, firstname and lastname, then concatenate if I really need the full name as a single variable.&lt;/P&gt;
&lt;P&gt;Fullname = catx(' ', firstname, lastname);&lt;/P&gt;
&lt;P&gt;If you search this forum carefully you will find the reverse question of "I have a full name and need the first and last (and middle) as separate" moderately often.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 15:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495727#M130902</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-14T15:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: input statement issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495869#M130983</link>
      <description>yes i do.</description>
      <pubDate>Sat, 15 Sep 2018 02:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-statement-issue/m-p/495869#M130983</guid>
      <dc:creator>MarcusX</dc:creator>
      <dc:date>2018-09-15T02:05:54Z</dc:date>
    </item>
  </channel>
</rss>

