<?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: Problem with string display/comparison after changing length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827715#M326953</link>
    <description>&lt;P&gt;Remove the format from the variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format IFRS9Classification2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Aug 2022 21:20:06 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-08-08T21:20:06Z</dc:date>
    <item>
      <title>Problem with string display/comparison after changing length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827713#M326952</link>
      <description>&lt;P&gt;This code works correctly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data master_retail2;
	retain dbs IFRS9Classification;
	length IFRS9Classification2 $18;

	set master_retail;
	if IFRS9Classification='Other Out of' then
		IFRS9Classification2='Other Out of Scope';
	else if IFRS9Classification='Operating lea' then
		IFRS9Classification2='Operating lease';
	else if IFRS9Classification='Loan wholesal' then
		IFRS9Classification2='Loan wholesale';
run;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't want to create a&amp;nbsp;&lt;CODE class=" language-sas"&gt;IFRS9Classification2&lt;/CODE&gt;&amp;nbsp;variable so I tried this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data master_retail2;
	retain dbs IFRS9Classification;
	length IFRS9Classification $18;

	set master_retail;
	if IFRS9Classification='Other Out of' then
		IFRS9Classification='Other Out of Scope';
	else if IFRS9Classification='Operating lea' then
		IFRS9Classification='Operating lease';
	else if IFRS9Classification='Loan wholesal' then
		IFRS9Classification='Loan wholesale';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-08 16_09_38-MASTER_RETAIL2 - _ Cierre_JULIO_2022-08-08xC - SAS Enterprise Guide.png" style="width: 438px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74253i11CCF85F6B76A8FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-08-08 16_09_38-MASTER_RETAIL2 - _ Cierre_JULIO_2022-08-08xC - SAS Enterprise Guide.png" alt="2022-08-08 16_09_38-MASTER_RETAIL2 - _ Cierre_JULIO_2022-08-08xC - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This happens. Values in field don't appear to have changed but can now be filtered using the updated values directly in the "where" dynamic filter in SAS EG&amp;nbsp;8.1 (8.1.0.4552) (64-bit). Why is EG not showing this correctly? Should I be worried?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 21:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827713#M326952</guid>
      <dc:creator>franriv</dc:creator>
      <dc:date>2022-08-08T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with string display/comparison after changing length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827715#M326953</link>
      <description>&lt;P&gt;Remove the format from the variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format IFRS9Classification2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2022 21:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827715#M326953</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-08T21:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with string display/comparison after changing length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827717#M326955</link>
      <description>Thanks!</description>
      <pubDate>Mon, 08 Aug 2022 21:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-string-display-comparison-after-changing-length/m-p/827717#M326955</guid>
      <dc:creator>franriv</dc:creator>
      <dc:date>2022-08-08T21:21:58Z</dc:date>
    </item>
  </channel>
</rss>

