<?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: URGENT HELP PLEASE!! in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517751#M3398</link>
    <description>&lt;P&gt;use char or substr function&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
if upcase(char(name,1))="A" then new_var = .;
else new_var = 0;
if upcase(substr(name,1,1))="A" then new_var1 = .;
else new_var1 = 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Dec 2018 17:39:48 GMT</pubDate>
    <dc:creator>kiranv_</dc:creator>
    <dc:date>2018-12-01T17:39:48Z</dc:date>
    <item>
      <title>URGENT HELP PLEASE!!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517749#M3396</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if someone can help me with this. I've been stuck on this for a while now and need an answer fast as I have an assignment to hand in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not quite sure how to write SAS code for the following problem: "If the first character of s_cmstdtc is "U", leave the numeric value missing."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated! Thank you!!&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 17:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517749#M3396</guid>
      <dc:creator>Patelbb</dc:creator>
      <dc:date>2018-12-01T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP PLEASE!!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517751#M3398</link>
      <description>&lt;P&gt;use char or substr function&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
if upcase(char(name,1))="A" then new_var = .;
else new_var = 0;
if upcase(substr(name,1,1))="A" then new_var1 = .;
else new_var1 = 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Dec 2018 17:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517751#M3398</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-12-01T17:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP PLEASE!!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517756#M3399</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237206"&gt;@Patelbb&lt;/a&gt;&amp;nbsp;While it is perfectly fine to seek urgent help, you could also post better samples of what you have and want rather than a plain sentence leading to some ambiguity where it's a variable operand/constant operand and what and where to assign missing or leave missing as per your words&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, first function is very convenient for you to use rather than char or substr if i understand your requirement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if first(strip(var))='U'&lt;/STRONG&gt; then do whatever you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 17:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517756#M3399</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-01T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP PLEASE!!</title>
      <link>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517757#M3400</link>
      <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 18:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/URGENT-HELP-PLEASE/m-p/517757#M3400</guid>
      <dc:creator>Patelbb</dc:creator>
      <dc:date>2018-12-01T18:48:07Z</dc:date>
    </item>
  </channel>
</rss>

