<?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: What does  trim(put(mbrDes,$CON.)) generates? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787651#M251712</link>
    <description>&lt;P&gt;The semicolon after the = sign in this line of code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if LineofBu =: 'DSS' Then system = 'DSS';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;indicates that the test checks to see if the value of LineofBu &lt;FONT color="#FF0000"&gt;starts with&lt;/FONT&gt; DSS (it does not test if the entire string is equal to DSS)&lt;/P&gt;</description>
    <pubDate>Wed, 29 Dec 2021 17:17:02 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-12-29T17:17:02Z</dc:date>
    <item>
      <title>What does  trim(put(mbrDes,$CON.)) generates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787644#M251707</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have the code below:&lt;/P&gt;
&lt;P&gt;I want to know why this part:&amp;nbsp;trim(put(mbrDes,$CON.)) equals to DSS, it doesn't get equal to whole string.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below doesn't generate errors:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
values $CON
'b' = 'DSS- PP'
Run;

Data want (Keep = mbrDes);
format LineofBu $60. system $5;
set have;
LineofBu =trim(put(mbrDes,$CON.));
if LineofBu =: 'DSS' Then system = 'DSS';
run;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 17:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787644#M251707</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-12-29T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: What does  trim(put(mbrDes,$CON.)) generates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787651#M251712</link>
      <description>&lt;P&gt;The semicolon after the = sign in this line of code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if LineofBu =: 'DSS' Then system = 'DSS';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;indicates that the test checks to see if the value of LineofBu &lt;FONT color="#FF0000"&gt;starts with&lt;/FONT&gt; DSS (it does not test if the entire string is equal to DSS)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 17:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787651#M251712</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-29T17:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: What does  trim(put(mbrDes,$CON.)) generates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787653#M251713</link>
      <description>&lt;P&gt;FYI - your code as posted does generate errors for me - there are three syntax errors in your code.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 17:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-trim-put-mbrDes-CON-generates/m-p/787653#M251713</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-29T17:23:49Z</dc:date>
    </item>
  </channel>
</rss>

