<?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 programming in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754855#M238142</link>
    <description>&lt;P&gt;You're using the wrong definition of TRIM. To trim statistics usually means to remove outliers/edge case data. You're assuming it applies to character variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hollyemblem.medium.com/when-to-use-a-trimmed-mean-fd6aab347e46" target="_blank"&gt;https://hollyemblem.medium.com/when-to-use-a-trimmed-mean-fd6aab347e46&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389792"&gt;@ashwinangiah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 PROC IMPORT DATAFILE="/home/u58805020/BI/Financial Sample.xlsx"&lt;BR /&gt;74 OUT=Sales&lt;BR /&gt;75 dbms=xlsx;&lt;BR /&gt;76 Run;&lt;BR /&gt;&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 700 observations and 16 variables.&lt;BR /&gt;NOTE: WORK.SALES data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.11 seconds&lt;BR /&gt;user cpu time 0.11 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 2809.40k&lt;BR /&gt;OS Memory 31400.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 24 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 818&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 19&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;77&lt;BR /&gt;78 data work.strip_trimleft_trimnleft;&lt;BR /&gt;79 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;80 string = "*" || city || "*";&lt;BR /&gt;81 strip = "*" || strip(city) || "*";&lt;BR /&gt;82 trim_left = "*" || trim(left(city)) || "*";&lt;BR /&gt;83 trimn_left = "*" || trimn(left(city)) || "*";&lt;BR /&gt;84&lt;BR /&gt;85 drop city;&lt;BR /&gt;86 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;80:21 81:26 82:34 83:36&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.STRIP_TRIMLEFT_TRIMNLEFT may be incomplete. When this step was stopped there were 0 observations and 4&lt;BR /&gt;variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 632.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 25 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 116&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;87&lt;BR /&gt;88 data work.compress_compbl;&lt;BR /&gt;89 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;90 string = "*" || city || "*";&lt;BR /&gt;91 compress = "*" || compress(city) || "*";&lt;BR /&gt;92 compbl = "*" || compbl(city) || "*";&lt;BR /&gt;93&lt;BR /&gt;94 drop city;&lt;BR /&gt;95 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;90:21 91:32 92:28&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.COMPRESS_COMPBL may be incomplete. When this step was stopped there were 0 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 631.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 26 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 89&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;96&lt;BR /&gt;97 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;109&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Jul 2021 15:08:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-07-18T15:08:22Z</dc:date>
    <item>
      <title>SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754729#M238073</link>
      <description>&lt;P&gt;Select a real-time dataset of your choice.&lt;/P&gt;&lt;P&gt;Perform the following steps:&lt;/P&gt;&lt;P&gt;a) Data Trimming&amp;nbsp;&lt;/P&gt;&lt;P&gt;b) Data Cleaning&lt;/P&gt;&lt;P&gt;c) Understand data behavior with help of graphs and charts&lt;/P&gt;&lt;P&gt;d) Understand the data with various statistical tools.&lt;/P&gt;&lt;P&gt;Submit individual project: code along with interpretation.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Embed SAS code and output screenshots within the same word document.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 11:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754729#M238073</guid>
      <dc:creator>ashwinangiah</dc:creator>
      <dc:date>2021-07-17T11:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754730#M238074</link>
      <description>&lt;P&gt;What is your question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 12:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754730#M238074</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-17T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754742#M238078</link>
      <description>&lt;P&gt;using the attached excel sheet how to perform the following steps:&lt;/P&gt;&lt;P&gt;a) Data Trimming&amp;nbsp;&lt;/P&gt;&lt;P&gt;b) Data Cleaning&lt;/P&gt;&lt;P&gt;c) Understand data behavior with help of graphs and charts&lt;/P&gt;&lt;P&gt;d) Understand the data with various statistical tools.&lt;/P&gt;&lt;P&gt;please explain with code along with interpretation.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Embed SAS code and output screenshots within the same document to better understand.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 13:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754742#M238078</guid>
      <dc:creator>ashwinangiah</dc:creator>
      <dc:date>2021-07-17T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754743#M238079</link>
      <description>&lt;P&gt;Well, honestly, it sounds like you want someone to do your homework for you. And I am not (and many others are not) willing to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you write some SAS code, and it's not working, then show us the LOG, I (and many others) will be happy to provide help.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 13:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754743#M238079</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-17T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754745#M238080</link>
      <description>&lt;P&gt;1. code for data trimming&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="/home/u58805020/BI/Financial Sample.xlsx"&lt;BR /&gt;OUT=Sales&lt;BR /&gt;dbms=xlsx;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;data work.strip_trimleft_trimnleft;&lt;BR /&gt;set work.cities;&lt;BR /&gt;string = "*" || city || "*";&lt;BR /&gt;strip = "*" || strip(city) || "*";&lt;BR /&gt;trim_left = "*" || trim(left(city)) || "*";&lt;BR /&gt;trimn_left = "*" || trimn(left(city)) || "*";&lt;BR /&gt;&lt;BR /&gt;drop city;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. code for data cleaning :&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="/home/u58805020/BI/Financial Sample.xlsx"&lt;BR /&gt;OUT=Sales&lt;BR /&gt;dbms=xlsx;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;data work.strip_trimleft_trimnleft;&lt;BR /&gt;set work.cities;&lt;BR /&gt;string = "*" || city || "*";&lt;BR /&gt;strip = "*" || strip(city) || "*";&lt;BR /&gt;trim_left = "*" || trim(left(city)) || "*";&lt;BR /&gt;trimn_left = "*" || trimn(left(city)) || "*";&lt;BR /&gt;&lt;BR /&gt;drop city;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data work.compress_compbl;&lt;BR /&gt;set work.cities;&lt;BR /&gt;string = "*" || city || "*";&lt;BR /&gt;compress = "*" || compress(city) || "*";&lt;BR /&gt;compbl = "*" || compbl(city) || "*";&lt;BR /&gt;&lt;BR /&gt;drop city;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am getting too many errors....&lt;/P&gt;&lt;P&gt;please help me with this sas programming.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 13:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754745#M238080</guid>
      <dc:creator>ashwinangiah</dc:creator>
      <dc:date>2021-07-17T13:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754747#M238082</link>
      <description>my log says:&lt;BR /&gt;WARNING: The data set WORK STRIP TRIMLEFT TRIMNLEFT may be incomplete. When this step was stopped there were 0 observations and 4&lt;BR /&gt;&lt;BR /&gt;WARNING. The data WORK COMPRESS COMPBL may be complete. When this step was stopped there were 0 observations and 3 variables. and ERROR: File WORK.CITIES.DATA does not exist.</description>
      <pubDate>Sat, 17 Jul 2021 14:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754747#M238082</guid>
      <dc:creator>ashwinangiah</dc:creator>
      <dc:date>2021-07-17T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754763#M238088</link>
      <description>&lt;P&gt;In my opinion, data trimming is not removing blanks from the city name. I don't know what is expected of "data trimming" in this homework assignment, but I doubt that's it. You need to make sure you are doing the "data trimming" that is required. Similarly, "data cleaning" is not whatever it is you show under your "data cleaning" code. I think you have gone down the wrong path. You might be wise to discuss these with your professor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to straighten out those items with your professor and make sure your are attempting the right things. We cannot help here until you know (and then let us know) what is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want you to go down the RIGHT path here, and so there's no point in fixing code that takes you down the wrong path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are having errors, then please show us the LOG. We need to see the ENTIRE log, that's 100%, every single character, so we can see your code as it appears in the log, and we can see the NOTEs, WARNINGs and ERRORs. Copy the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon. PLEASE FOLLOW THESE INSTRUCTIONS. Failure to follow the instruction only slows you down, as we will again ask for you to follow these instructions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I (and many people) do not download Excel files, as they are a security threat. The proper way to provide us data for use is via &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt; (and not via an Excel file or a screen capture of an Excel file).&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 16:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754763#M238088</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-17T16:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754764#M238089</link>
      <description>&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 PROC IMPORT DATAFILE="/home/u58805020/BI/Financial Sample.xlsx"&lt;BR /&gt;74 OUT=Sales&lt;BR /&gt;75 dbms=xlsx;&lt;BR /&gt;76 Run;&lt;BR /&gt;&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 700 observations and 16 variables.&lt;BR /&gt;NOTE: WORK.SALES data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.11 seconds&lt;BR /&gt;user cpu time 0.11 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 2809.40k&lt;BR /&gt;OS Memory 31400.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 24 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 818&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 19&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;77&lt;BR /&gt;78 data work.strip_trimleft_trimnleft;&lt;BR /&gt;79 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;80 string = "*" || city || "*";&lt;BR /&gt;81 strip = "*" || strip(city) || "*";&lt;BR /&gt;82 trim_left = "*" || trim(left(city)) || "*";&lt;BR /&gt;83 trimn_left = "*" || trimn(left(city)) || "*";&lt;BR /&gt;84&lt;BR /&gt;85 drop city;&lt;BR /&gt;86 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;80:21 81:26 82:34 83:36&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.STRIP_TRIMLEFT_TRIMNLEFT may be incomplete. When this step was stopped there were 0 observations and 4&lt;BR /&gt;variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 632.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 25 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 116&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;87&lt;BR /&gt;88 data work.compress_compbl;&lt;BR /&gt;89 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;90 string = "*" || city || "*";&lt;BR /&gt;91 compress = "*" || compress(city) || "*";&lt;BR /&gt;92 compbl = "*" || compbl(city) || "*";&lt;BR /&gt;93&lt;BR /&gt;94 drop city;&lt;BR /&gt;95 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;90:21 91:32 92:28&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.COMPRESS_COMPBL may be incomplete. When this step was stopped there were 0 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 631.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 26 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 89&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;96&lt;BR /&gt;97 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;109</description>
      <pubDate>Sat, 17 Jul 2021 15:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754764#M238089</guid>
      <dc:creator>ashwinangiah</dc:creator>
      <dc:date>2021-07-17T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754778#M238099</link>
      <description>&lt;P&gt;From which fact do you assume that there is a dataset CITIES in WORK?&lt;/P&gt;
&lt;P&gt;You imported a dataset SALES.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 16:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754778#M238099</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-17T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754855#M238142</link>
      <description>&lt;P&gt;You're using the wrong definition of TRIM. To trim statistics usually means to remove outliers/edge case data. You're assuming it applies to character variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hollyemblem.medium.com/when-to-use-a-trimmed-mean-fd6aab347e46" target="_blank"&gt;https://hollyemblem.medium.com/when-to-use-a-trimmed-mean-fd6aab347e46&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389792"&gt;@ashwinangiah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 PROC IMPORT DATAFILE="/home/u58805020/BI/Financial Sample.xlsx"&lt;BR /&gt;74 OUT=Sales&lt;BR /&gt;75 dbms=xlsx;&lt;BR /&gt;76 Run;&lt;BR /&gt;&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 700 observations and 16 variables.&lt;BR /&gt;NOTE: WORK.SALES data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.11 seconds&lt;BR /&gt;user cpu time 0.11 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 2809.40k&lt;BR /&gt;OS Memory 31400.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 24 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 818&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 19&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;77&lt;BR /&gt;78 data work.strip_trimleft_trimnleft;&lt;BR /&gt;79 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;80 string = "*" || city || "*";&lt;BR /&gt;81 strip = "*" || strip(city) || "*";&lt;BR /&gt;82 trim_left = "*" || trim(left(city)) || "*";&lt;BR /&gt;83 trimn_left = "*" || trimn(left(city)) || "*";&lt;BR /&gt;84&lt;BR /&gt;85 drop city;&lt;BR /&gt;86 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;80:21 81:26 82:34 83:36&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.STRIP_TRIMLEFT_TRIMNLEFT may be incomplete. When this step was stopped there were 0 observations and 4&lt;BR /&gt;variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 632.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 25 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 116&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;87&lt;BR /&gt;88 data work.compress_compbl;&lt;BR /&gt;89 set work.cities;&lt;BR /&gt;ERROR: File WORK.CITIES.DATA does not exist.&lt;BR /&gt;90 string = "*" || city || "*";&lt;BR /&gt;91 compress = "*" || compress(city) || "*";&lt;BR /&gt;92 compbl = "*" || compbl(city) || "*";&lt;BR /&gt;93&lt;BR /&gt;94 drop city;&lt;BR /&gt;95 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;90:21 91:32 92:28&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.COMPRESS_COMPBL may be incomplete. When this step was stopped there were 0 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 631.96k&lt;BR /&gt;OS Memory 29864.00k&lt;BR /&gt;Timestamp 07/17/2021 03:57:50 PM&lt;BR /&gt;Step Count 26 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 89&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 9&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;96&lt;BR /&gt;97 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;109&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 15:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-programming/m-p/754855#M238142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-18T15:08:22Z</dc:date>
    </item>
  </channel>
</rss>

