<?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: How to compare all variables and get the desired output in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/887025#M11035</link>
    <description>&lt;P&gt;Some things that cannot be told from a picture that you may need to explain in considerable detail.&lt;/P&gt;
&lt;P&gt;"same as per the previous month" means that we need to be able to tell just what a "previous month" would be. If your values for "month" are character then the "previous" can have a somewhat slippery meaning as 1 ) there is no YEAR present. So if you have JAN and DEC for the same account we cannot tell which is previous to which.&lt;/P&gt;
&lt;P&gt;Second if the value of month are character then "previous" as in "before" typically means the value order. But with character values APR comes before JAN and any comparison is going to be nasty as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS has several tools to deal with sequential processing once the data is in sequence but we cannot tell if the first step is going to be coding that involves allowing placing the months in order and see the comment above about YEAR that may be involved with that.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2023 19:45:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-07-30T19:45:52Z</dc:date>
    <item>
      <title>How to compare all variables and get the desired output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/886990#M11032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bank dataset in which i have 3 variables like Account, Month, Status. I need to know which accounts status is remain same as per the previous month.&lt;/P&gt;&lt;P&gt;refer to the following dataset and give a brief explanation about the findings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86242i5E34F45354BD5007/image-size/medium?v=v2&amp;amp;px=400" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 20:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/886990#M11032</guid>
      <dc:creator>Abhinash_rout</dc:creator>
      <dc:date>2023-07-29T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare all variables and get the desired output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/886995#M11033</link>
      <description>&lt;P&gt;The only time I have seen the directive "&lt;SPAN&gt;refer to the following dataset and give a brief explanation about the findings" was in a homework assignment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please tell us what you have tried, and you will no doubt get good advice.&amp;nbsp; Most respondents here would rather you own the answer than have the answer own you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 22:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/886995#M11033</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-07-29T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare all variables and get the desired output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/887003#M11034</link>
      <description>It would be better to post real data,not a picture. and better some sas code to generate this data .&lt;BR /&gt;&lt;BR /&gt;Here could give you a start:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Help/td-p/886770" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Help/td-p/886770&lt;/A&gt;</description>
      <pubDate>Sun, 30 Jul 2023 09:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/887003#M11034</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-30T09:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare all variables and get the desired output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/887025#M11035</link>
      <description>&lt;P&gt;Some things that cannot be told from a picture that you may need to explain in considerable detail.&lt;/P&gt;
&lt;P&gt;"same as per the previous month" means that we need to be able to tell just what a "previous month" would be. If your values for "month" are character then the "previous" can have a somewhat slippery meaning as 1 ) there is no YEAR present. So if you have JAN and DEC for the same account we cannot tell which is previous to which.&lt;/P&gt;
&lt;P&gt;Second if the value of month are character then "previous" as in "before" typically means the value order. But with character values APR comes before JAN and any comparison is going to be nasty as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS has several tools to deal with sequential processing once the data is in sequence but we cannot tell if the first step is going to be coding that involves allowing placing the months in order and see the comment above about YEAR that may be involved with that.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 19:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-compare-all-variables-and-get-the-desired-output/m-p/887025#M11035</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-30T19:45:52Z</dc:date>
    </item>
  </channel>
</rss>

