<?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: SAS character functions in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507049#M1429</link>
    <description>Post what you've tried so far and we can help point out where you're going wrong.</description>
    <pubDate>Wed, 24 Oct 2018 01:41:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-10-24T01:41:41Z</dc:date>
    <item>
      <title>SAS character functions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507040#M1428</link>
      <description>&lt;DIV class="ic-Layout-contentWrapper"&gt;&lt;DIV class="ic-Layout-contentMain"&gt;&lt;DIV class="assignment content_underline_links"&gt;&lt;DIV class="description user_content student-version enhanced"&gt;&lt;P&gt;&lt;SPAN&gt;Hi everyone,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to complete the problem below, but am having a lot of trouble with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data set is:&amp;nbsp;&amp;nbsp;DATA address;&lt;BR /&gt;INPUT #1 @1 line1 $50.&lt;BR /&gt;#2 @1 line2 $50.&lt;BR /&gt;#3 @1 line3 $50.;&lt;BR /&gt;DATALINES;&lt;BR /&gt;Mr. Jason Simmons&lt;BR /&gt;123 Sesame Street&lt;BR /&gt;Madison, WI&lt;BR /&gt;Dr. Justin Case&lt;BR /&gt;78 River Road&lt;BR /&gt;Flemington, NJ&lt;BR /&gt;Ms. Marilyn Crow&lt;BR /&gt;777 Jewell Avenue&lt;BR /&gt;Pittsburgh, PA&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following program: (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="homework_problem1.sas" href="https://psu.instructure.com/courses/1900406/files/93873128/download?verifier=q4O9EDdpyTtm1rd4mAQ8tOJXd2komK8wD9eD7MK2&amp;amp;wrap=1" target=""&gt;homework_problem1.sas&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;) to create the data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;address&lt;/EM&gt;. Then, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;line1&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;line2&lt;/EM&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;line3&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variables to create three new variables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;name&lt;/EM&gt;: containing just the first and last name separated by one blank space, and then the whole name surrounded by a colon on the left and a colon to the right&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;street&lt;/EM&gt;: containing the house number, street, and type of road, with separations of only one blank space, and Road replaced by Rd., Street replaced by St., and Avenue replaced by Ave., and the whole thing surrounded by a colon on the left and a colon to the right&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;city&lt;/EM&gt;: containing the town and state with a separation of a comma and one blank space surrounded by a colon on the left and a colon to the right&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When all is said and done, print out your the three variables so that it looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://psu.instructure.com/courses/1900406/files/93873177/preview?verifier=9MuzCeLdExUtuIdSjpXklQafc8oHcP73jQzow4Rf" border="0" alt="image_homework01_L23.gif" /&gt;&lt;/P&gt;&lt;P&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;compbl&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scan&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;catx&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and || functions to create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;name&lt;/EM&gt;. Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;tranwrd&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;trim&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;compbl&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and || to create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;street&lt;/EM&gt;. And use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;trim&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;compbl&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and || to create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;city.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507040#M1428</guid>
      <dc:creator>paperboy22</dc:creator>
      <dc:date>2018-10-24T00:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS character functions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507049#M1429</link>
      <description>Post what you've tried so far and we can help point out where you're going wrong.</description>
      <pubDate>Wed, 24 Oct 2018 01:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507049#M1429</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-24T01:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS character functions</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507183#M1433</link>
      <description>&lt;P&gt;Added hints: May want to consider CATS instead of || with Trim (or Strip)&lt;/P&gt;
&lt;P&gt;Have you read the online help for any of the suggested functions?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 14:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-character-functions/m-p/507183#M1433</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-24T14:53:06Z</dc:date>
    </item>
  </channel>
</rss>

