<?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: Nested loop across n many items in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691283#M37293</link>
    <description>&lt;P&gt;Example of what actual data looks like, as in a few rows of values similar to what you would expect to see in the process. The values need not be actual, just show the behavior. And then describe using that example how to do the actual comparison that you need.&lt;/P&gt;
&lt;P&gt;Your descriptions don't really provide much to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to &lt;STRONG&gt;guess&lt;/STRONG&gt; from the indirect description that a main challenge might be in getting a usable format.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 14:38:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-10-13T14:38:16Z</dc:date>
    <item>
      <title>Nested loop across n many items</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691279#M37291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider a retail stores credit card fee structure:&lt;BR /&gt;Account type = A{1,...,a}&amp;nbsp; &amp;nbsp;- character&lt;BR /&gt;Product type = B{1,..., b}&amp;nbsp; -&amp;nbsp;character&amp;nbsp;&lt;BR /&gt;Sub product type = C{1,..,c}&amp;nbsp; &amp;nbsp;- character&lt;BR /&gt;Cost = D{1,...,d}&amp;nbsp; &amp;nbsp; - finite number of numeric costs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the length of B varies on the depending on the a_i in question and the length of C depends on the b_i (product type) in question.&lt;BR /&gt;There is a specific cost associated with a given transaction on a given account type, product type and sub product type - that varies with transaction sizes. There are bands to this pricing and my&amp;nbsp;objective is to highlight anomalies in this relationship.&lt;/P&gt;&lt;P&gt;Bands example:&lt;BR /&gt;1) Transactions from $0 to $1000, we expect a fee of $10.&amp;nbsp;&lt;BR /&gt;2) Transactions $1001 to $2000, we expect a fee of $15.&amp;nbsp;&lt;BR /&gt;Anomaly in 2) could be a transaction of $900 or $2100 with a fee of $15. These anomalies could be identified through building the aforementioned loop and highlighting the top and bottom 1% of transaction sizes for the given fee amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have struggled with building this in SAS. I have explored and tried tweaking numerous sets of code available on these forums without any luck.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please assist / advise - or is there any easier way to approach this problem in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 14:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691279#M37291</guid>
      <dc:creator>Ross12345</dc:creator>
      <dc:date>2020-10-13T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested loop across n many items</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691281#M37292</link>
      <description>&lt;P&gt;Please provide a small (but representative) example data set following &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 also please provide the desired output from this small example data set.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 14:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691281#M37292</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-13T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested loop across n many items</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691283#M37293</link>
      <description>&lt;P&gt;Example of what actual data looks like, as in a few rows of values similar to what you would expect to see in the process. The values need not be actual, just show the behavior. And then describe using that example how to do the actual comparison that you need.&lt;/P&gt;
&lt;P&gt;Your descriptions don't really provide much to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to &lt;STRONG&gt;guess&lt;/STRONG&gt; from the indirect description that a main challenge might be in getting a usable format.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 14:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Nested-loop-across-n-many-items/m-p/691283#M37293</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-13T14:38:16Z</dc:date>
    </item>
  </channel>
</rss>

