<?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 Building email address in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/403304#M278919</link>
    <description>&lt;P&gt;If your e-mail is of the form xyyyyy@domain.com (like jsmith@foobar.com ) you can use this to derive the email address from system variable _CLIENTUSERNAME:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* determine email address from _CLIENTUSERNAME */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;emailaddress=trim(compress(lowcase(substr(scan(&amp;amp;_CLIENTUSERNAME, -1),1,1)||scan(&amp;amp;_CLIENTUSERNAME, 1))||'@domain.com'));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;firstname&amp;nbsp;&amp;nbsp; =trim(compress(lowcase(scan(&amp;amp;_CLIENTUSERNAME,-1))));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;lastname&amp;nbsp;&amp;nbsp;&amp;nbsp; =trim(compress(lowcase(scan(&amp;amp;_CLIENTUSERNAME,+1))));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('firstname', trim(firstname));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('lastname', trim(lastname));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('emailaddress', trim(emailaddress));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;%put &amp;amp;=emailaddress;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 18:39:51 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2017-10-11T18:39:51Z</dc:date>
    <item>
      <title>Building email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/403304#M278919</link>
      <description>&lt;P&gt;If your e-mail is of the form xyyyyy@domain.com (like jsmith@foobar.com ) you can use this to derive the email address from system variable _CLIENTUSERNAME:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* determine email address from _CLIENTUSERNAME */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;emailaddress=trim(compress(lowcase(substr(scan(&amp;amp;_CLIENTUSERNAME, -1),1,1)||scan(&amp;amp;_CLIENTUSERNAME, 1))||'@domain.com'));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;firstname&amp;nbsp;&amp;nbsp; =trim(compress(lowcase(scan(&amp;amp;_CLIENTUSERNAME,-1))));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;lastname&amp;nbsp;&amp;nbsp;&amp;nbsp; =trim(compress(lowcase(scan(&amp;amp;_CLIENTUSERNAME,+1))));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('firstname', trim(firstname));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('lastname', trim(lastname));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;call symput('emailaddress', trim(emailaddress));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;%put &amp;amp;=emailaddress;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/403304#M278919</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2017-10-11T18:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Building email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/403323#M278920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144199"&gt;@tomrvincent&lt;/a&gt;. It looks like you're trying to post content that can be shared/library type reference code for people. This is a great idea, please consider posting them as Articles rather than posts. Posts are typically for questions. I also like to keep a set over on github, personal choice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/tkb-p/library" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/tkb-p/library&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And add New Article.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking forward to seeing your posts!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/403323#M278920</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-11T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Building email address</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/409131#M278921</link>
      <description>&lt;P&gt;I had never heard of or seen that...thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just tried it...got this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have not yet achieved the experience level on the community to create your own article. Keep coming back and posting discussion topics though, and you'll earn it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oh, well...&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-email-address/m-p/409131#M278921</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2017-10-31T14:27:27Z</dc:date>
    </item>
  </channel>
</rss>

