<?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 How to Read This in Data Step in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602978#M16885</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to read this in Data Step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
	INPUT @ NAME $22. age gender $;
	DATALINES;
RASPUTIN 45 M
BETSY ROSS 62 F
ROBERT LOUIS STEVENSON 75 M
;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Nov 2019 12:46:43 GMT</pubDate>
    <dc:creator>User_Help</dc:creator>
    <dc:date>2019-11-09T12:46:43Z</dc:date>
    <item>
      <title>How to Read This in Data Step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602978#M16885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to read this in Data Step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
	INPUT @ NAME $22. age gender $;
	DATALINES;
RASPUTIN 45 M
BETSY ROSS 62 F
ROBERT LOUIS STEVENSON 75 M
;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 12:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602978#M16885</guid>
      <dc:creator>User_Help</dc:creator>
      <dc:date>2019-11-09T12:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read This in Data Step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602980#M16886</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
	INPUT;
gender=scan(_infile_,-1,' ');
age=scan(_infile_,-2,' ');
call scan(_infile_,-2,p,l,' ');
name=substr(_infile_,1,p-1);
drop p l;
DATALINES;
RASPUTIN 45 M
BETSY ROSS 62 F
ROBERT LOUIS STEVENSON 75 M
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Nov 2019 12:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602980#M16886</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-09T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read This in Data Step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602982#M16887</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287538"&gt;@User_Help&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;the solution given by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;, it can be solved without using SAS functions. The only requirement is that the value for NAME variable separated by two or more blanks as in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
	INPUT NAME &amp;amp;$22. age gender $;
	DATALINES;
RASPUTIN  45 M
BETSY ROSS  62 F
ROBERT LOUIS STEVENSON  75 M
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I introduced two BLANKS between NAME and AGE and used &amp;amp;$22 to read blank embedded NAME.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 13:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Read-This-in-Data-Step/m-p/602982#M16887</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-11-09T13:14:16Z</dc:date>
    </item>
  </channel>
</rss>

