<?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 plz help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22779#M3711</link>
    <description>how to get the output of this program. I am unable to get output.&lt;BR /&gt;
&lt;BR /&gt;
data abc;&lt;BR /&gt;
input pid name $ age race $;&lt;BR /&gt;
cardsl&lt;BR /&gt;
101 rakesh kumar 34 asian&lt;BR /&gt;
102 hari 29 african&lt;BR /&gt;
;</description>
    <pubDate>Sat, 05 Mar 2011 09:09:41 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-03-05T09:09:41Z</dc:date>
    <item>
      <title>plz help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22779#M3711</link>
      <description>how to get the output of this program. I am unable to get output.&lt;BR /&gt;
&lt;BR /&gt;
data abc;&lt;BR /&gt;
input pid name $ age race $;&lt;BR /&gt;
cardsl&lt;BR /&gt;
101 rakesh kumar 34 asian&lt;BR /&gt;
102 hari 29 african&lt;BR /&gt;
;</description>
      <pubDate>Sat, 05 Mar 2011 09:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22779#M3711</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-05T09:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22780#M3712</link>
      <description>I'm also having a difficulties with your sample data.&lt;BR /&gt;
The variable name in the  first row consists of two parts, but in the second row the second part is missing.&lt;BR /&gt;
Don't you miss something? Does your actual data as inconsistent as you post it?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data abc;                                                                                                                               &lt;BR /&gt;
infile cards missover;                                                                                                                  &lt;BR /&gt;
input pid fname :$30.  sname :$30. age race :$10.;                                                                                      &lt;BR /&gt;
cards;                                                                                                                                  &lt;BR /&gt;
101 rakesh kumar 34 asian                                                                                                               &lt;BR /&gt;
102 hari Sname_is_missing 29 african                                                                                                    &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
[/pre]</description>
      <pubDate>Sat, 05 Mar 2011 09:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22780#M3712</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2011-03-05T09:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22781#M3713</link>
      <description>No missing data is there.I have to display in name column as rakesh kumar and hari without keeping Sname_is_missing.</description>
      <pubDate>Sat, 05 Mar 2011 09:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22781#M3713</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-05T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22782#M3714</link>
      <description>The code below is a solution from this forum poster "Data _null_".&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="&amp;lt;br"&gt;
&lt;/A&gt;&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=51217접" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=51217접&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=51217접" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=51217접&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
data a;                                                                                                                                 &lt;BR /&gt;
   retain dlm ' ';                                                                                                                      &lt;BR /&gt;
   infile cards  truncover   dsd   dlm=dlm;                                                                                             &lt;BR /&gt;
   input @;                                                                                                                             &lt;BR /&gt;
   end = length(_infile_)+1;                                                                                                            &lt;BR /&gt;
   do j = 1 to 2;                                                                                                                       &lt;BR /&gt;
      end = find(_infile_,dlm,-(end-1));                                                                                                &lt;BR /&gt;
      end;                                                                                                                              &lt;BR /&gt;
   start = find(_infile_,dlm,1);                                                                                                        &lt;BR /&gt;
   length = end-start-1;                                                                                                                &lt;BR /&gt;
   input pid :8. name $varying50.  length +1   age :8. race :$10.;                                                                      &lt;BR /&gt;
 keep pid name age race;                                                                                                                &lt;BR /&gt;
cards;                                                                                                                                  &lt;BR /&gt;
101 rakesh kumar 34 asian                                                                                                               &lt;BR /&gt;
102 hari  29 african                                                                                                                    &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Oleg_L&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Oleg_L

Message was edited by: Oleg_L</description>
      <pubDate>Sat, 05 Mar 2011 10:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22782#M3714</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2011-03-05T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22783#M3715</link>
      <description>It is interesting.Ok, Let's overcome it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
infile datalines truncover;&lt;BR /&gt;
input pid remain $100.;&lt;BR /&gt;
name=substr(remain,1,anydigit(remain)-1);&lt;BR /&gt;
age=scan(remain,-2);&lt;BR /&gt;
race=scan(remain,-1);&lt;BR /&gt;
drop remain;&lt;BR /&gt;
datalines;&lt;BR /&gt;
101 rakesh kumar 34 asian&lt;BR /&gt;
102 hari 29 african&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 07 Mar 2011 01:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plz-help/m-p/22783#M3715</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-07T01:29:56Z</dc:date>
    </item>
  </channel>
</rss>

