<?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: Novice question about formats and renaming in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779881#M31584</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406060"&gt;@Pixydust12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;I should note that Gender is my observation while race,income, and occupation are my variables&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by gender is my observation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically an 'observation' is a row of data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your code, the RUN terminates your data step, removing it fixes your issues.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406060"&gt;@Pixydust12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;data Female;&lt;BR /&gt;set Original;&lt;BR /&gt;if race= 'Black or African American' then race= 'African American';&lt;BR /&gt;else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race= 'Asian/Pacific Islander';&lt;BR /&gt;run;&lt;BR /&gt;if gender eq 'Female';&lt;BR /&gt;if income eq 'High’;&lt;BR /&gt;if race= 'Unknown’ then delete;&lt;BR /&gt;keep race income gender occupation;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=Female (obs=20);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I should note that Gender is my observation while race,income, and occupation are my variables&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Female;
set Original;

if race= 'Black or African American' then race= 'African American';
else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race= 'Asian/Pacific Islander';

*inclusion criteria;
if gender eq 'Female' and  income eq 'High’ and  race ne 'Unknown’;

keep race income gender occupation;
run;

proc print data=Female (obs=20);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Removing the RUN should fix your code. Note that you can combine your conditions to one using AND, no need for multiple filtering statements.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 00:58:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-11-12T00:58:47Z</dc:date>
    <item>
      <title>Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779481#M31558</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm very new to SAS, and I'm confusing myself when it comes to renaming, formatting, and labeling data. I have a data set with the variable RACE, and I need to rename one variable, and then rename + combine 3 into 1. Would I need to use a rename statement, or a format statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;RACE:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Black or African American&lt;STRONG&gt;- I need to rename this to African American&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Asian Indian&lt;STRONG&gt;- I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Asian or Pacific Islander, no specific (individual) race&lt;STRONG&gt;-&amp;nbsp;I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Other Asian or Pacific Islander&lt;STRONG&gt;-&amp;nbsp;I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chinese&lt;/P&gt;&lt;P&gt;Guamanian or Chamorro&lt;/P&gt;&lt;P&gt;Japanese&lt;/P&gt;&lt;P&gt;White&lt;/P&gt;&lt;P&gt;Unknown&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 01:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779481#M31558</guid>
      <dc:creator>Pixydust12</dc:creator>
      <dc:date>2021-11-10T01:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779485#M31559</link>
      <description>&lt;P&gt;You can rename a &lt;STRONG&gt;variable&lt;/STRONG&gt;, but you cannot rename a &lt;STRONG&gt;value&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;You can attach a &lt;STRONG&gt;label&lt;/STRONG&gt; to a variable, but you cannot attach a label to a value (this is not SPSS).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a &lt;STRONG&gt;format&lt;/STRONG&gt; to make values display in a different way. (Formats are used to determine how values are displayed as text.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use code to create new values, either into new variables or back into the original variable. You can even use a format in combination with code to make creating new values easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have one variable named RACE with values like "Black or African American" and "Asian Indian"?&lt;/P&gt;
&lt;P&gt;Or do you have multiple variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you start by creating a format for you RACE values that will display them the way you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $racefmt 
 'Black or African American' = 'African American'
 'Asian Indian'
,'Asian or Pacific Islander, no specific (individual) race'
,'Other Asian or Pacific Islander' 
   = 'Asian/Pacific Islander'
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could try using the format with your existing data (without making any changes to the data).&amp;nbsp; Usually that is all you need to do.&amp;nbsp; For example by including a FORMAT statement in the procedure you want to run against the data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
  tables race;
  format race $racefmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 02:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779485#M31559</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-10T02:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779487#M31560</link>
      <description>&lt;P&gt;Use IF/THEN statements is the easiest for a beginner.&lt;/P&gt;
&lt;P&gt;Note the usage of IN to check for a series of values, not just one value at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; *want is the name of output data set;
set have; *have is the name of the input data set;

if race = 'Black or African American' then race = 'African American';
else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race = 'Asian/Pacific Islander';

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406060"&gt;@Pixydust12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm very new to SAS, and I'm confusing myself when it comes to renaming, formatting, and labeling data. I have a data set with the variable RACE, and I need to rename one variable, and then rename + combine 3 into 1. Would I need to use a rename statement, or a format statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;RACE:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Black or African American&lt;STRONG&gt;- I need to rename this to African American&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Asian Indian&lt;STRONG&gt;- I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Asian or Pacific Islander, no specific (individual) race&lt;STRONG&gt;-&amp;nbsp;I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Other Asian or Pacific Islander&lt;STRONG&gt;-&amp;nbsp;I need this to be "Asian/Pacific Islander"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Chinese&lt;/P&gt;
&lt;P&gt;Guamanian or Chamorro&lt;/P&gt;
&lt;P&gt;Japanese&lt;/P&gt;
&lt;P&gt;White&lt;/P&gt;
&lt;P&gt;Unknown&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 02:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779487#M31560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-10T02:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779683#M31565</link>
      <description>&lt;P&gt;Thank you! If I have other "IF" statements, do those go after those?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What order do these statements go below? When I run this I get the error "Statement is not valid or is used out of proper order"&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;if gender eq 'Female';&lt;BR /&gt;if income= 'High';&lt;BR /&gt;if race= 'Unknown' then delete;&lt;BR /&gt;keep race income gender occupation;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 00:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779683#M31565</guid>
      <dc:creator>Pixydust12</dc:creator>
      <dc:date>2021-11-11T00:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779688#M31566</link>
      <description>&lt;P&gt;You cannot have statements like IF outside of a DATA step.&amp;nbsp; That is probably the cause of the error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The order the statements appear in the data step will make a difference in the order that they will be executed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note there is a big difference between the IF/THEN statements in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;'s answer and the subsetting IF statements in your example here.&amp;nbsp; A subsetting IF will stop the current iteration of the data step when the condition is false, so any other statements after it will not execute for this observation.&amp;nbsp; The same thing will happen when you execute the DELETE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that IF/THEN DELETE is very much like a subsetting IF statement, only with the logic reversed.&lt;/P&gt;
&lt;P&gt;So these two statements do the same thing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if gender eq 'Female';
if gender ne 'Female' then delete;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 01:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779688#M31566</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-11T01:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779689#M31567</link>
      <description>Show your full code please. All IF statement belong in a data step.</description>
      <pubDate>Thu, 11 Nov 2021 01:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779689#M31567</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-11T01:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779703#M31571</link>
      <description>data Female;&lt;BR /&gt;set Original;&lt;BR /&gt;if race= 'Black or African American' then race= 'African American';&lt;BR /&gt;else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race= 'Asian/Pacific Islander';&lt;BR /&gt;run;&lt;BR /&gt;if gender eq 'Female';&lt;BR /&gt;if income eq 'High’;&lt;BR /&gt;if race= 'Unknown’ then delete;&lt;BR /&gt;keep race income gender occupation;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=Female (obs=20);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I should note that Gender is my observation while race,income, and occupation are my variables</description>
      <pubDate>Thu, 11 Nov 2021 05:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779703#M31571</guid>
      <dc:creator>Pixydust12</dc:creator>
      <dc:date>2021-11-11T05:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779715#M31574</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lestmtsglobal/p1t5kfub2r2jkkn1ftqtm8gfkz41.htm" target="_blank" rel="noopener"&gt;RUN&lt;/A&gt;&amp;nbsp;constitutes a step boundary and terminates the data step, causing the following to be "open code" where these statements are invalid.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779715#M31574</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-11T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779881#M31584</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406060"&gt;@Pixydust12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;I should note that Gender is my observation while race,income, and occupation are my variables&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by gender is my observation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically an 'observation' is a row of data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your code, the RUN terminates your data step, removing it fixes your issues.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406060"&gt;@Pixydust12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;data Female;&lt;BR /&gt;set Original;&lt;BR /&gt;if race= 'Black or African American' then race= 'African American';&lt;BR /&gt;else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race= 'Asian/Pacific Islander';&lt;BR /&gt;run;&lt;BR /&gt;if gender eq 'Female';&lt;BR /&gt;if income eq 'High’;&lt;BR /&gt;if race= 'Unknown’ then delete;&lt;BR /&gt;keep race income gender occupation;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=Female (obs=20);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I should note that Gender is my observation while race,income, and occupation are my variables&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Female;
set Original;

if race= 'Black or African American' then race= 'African American';
else if race in ( 'Asian Indian', 'Asian or Pacific Islander, no specific (individual) race', 'Other Asian or Pacific Islander' ) then race= 'Asian/Pacific Islander';

*inclusion criteria;
if gender eq 'Female' and  income eq 'High’ and  race ne 'Unknown’;

keep race income gender occupation;
run;

proc print data=Female (obs=20);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Removing the RUN should fix your code. Note that you can combine your conditions to one using AND, no need for multiple filtering statements.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 00:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/779881#M31584</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-12T00:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783812#M32015</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I create a format statement for race, they are all working except the "Asian or Pacific Islander, no specific (individual) race". For some reason, it will not format? I copied and pasted directly from the excel spreadsheet to make sure I had the spaces and spelling correct, but it still won't format. I also tried creating IF statements, and they all work except the one previously mentioned. There are no errors in my log. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pixydust12_0-1638495134981.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66361iE7BA6222B9589A43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pixydust12_0-1638495134981.png" alt="Pixydust12_0-1638495134981.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pixydust12_1-1638495168483.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66362i42F43F8CAEEDEED5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pixydust12_1-1638495168483.png" alt="Pixydust12_1-1638495168483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;value $racegrp&lt;BR /&gt;'Black or African American' = 'African American'&lt;BR /&gt;'Asian Indian'&lt;BR /&gt;,'Asian or Pacific Islander, no specific (individual) race'&lt;BR /&gt;,'Other Asian or Pacific Islander'&lt;BR /&gt;= 'Asian/Pacific Islander'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 01:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783812#M32015</guid>
      <dc:creator>Pixydust12</dc:creator>
      <dc:date>2021-12-03T01:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783823#M32017</link>
      <description>Then instead of an exact match do a match using colon operator instead&lt;BR /&gt;&lt;BR /&gt;If var =: ‘Asian ….’ Then …..&lt;BR /&gt;&lt;BR /&gt;Type that out yourself though, on mobile so that messes up the code/formatting. Make the string long enough to uniquely match the variable.</description>
      <pubDate>Fri, 03 Dec 2021 03:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783823#M32017</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-03T03:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783828#M32019</link>
      <description>&lt;P&gt;Are you only looking at HTML (or other "fancy" output) instead of plain text listing outputs?&lt;/P&gt;
&lt;P&gt;Then most likely you have leading spaces in the values that are not matching.&lt;/P&gt;
&lt;P&gt;Just remove the leading spaces.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;racename=left(racename);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another possibility is some of the spaces are not actually spaces. Instead that might be null character or tab or&amp;nbsp; line feed or carriage return or&amp;nbsp;"non-breaking space".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;racename=left(translate(racename,' ','00090A0DA0'x));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 03:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783828#M32019</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-03T03:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Novice question about formats and renaming</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783840#M32021</link>
      <description>&lt;P&gt;How would I do this using a FORMAT statement?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 05:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Novice-question-about-formats-and-renaming/m-p/783840#M32021</guid>
      <dc:creator>Pixydust12</dc:creator>
      <dc:date>2021-12-03T05:22:27Z</dc:date>
    </item>
  </channel>
</rss>

