<?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 Hash Check in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86949#M257067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp; I am new to using hash and doing most of my learning while troubleshooting old code.&amp;nbsp; The following code has been used for a while, this is a small segment of a much larger piece.&amp;nbsp; If I run the code more than once the variables that start with 'pre' will not be consistent, meaning the code doesn't do the same thing two times in a row.&amp;nbsp; If anyone can look at this and see what the issue is I will be very appreciative.&amp;nbsp; I'm going to keep looking through sas papers and try to find the issue myself as well.&amp;nbsp; I'm not able to add this as a word doc so I added it as a pdf, if you would like it in any other format let me know.&amp;nbsp; I'll also paste it below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;********************************************************************************;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*** MERGE MIGRATION DATA WITH DISCO AND SEGMENT TABLES ***;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;********************************************************************************;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._&amp;amp;START_DATE._2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;LENGTH ABB_CORE_SEGMENT ABB_CORE_SEGMENT_2 ABB_CORE_SEGMENT_3 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; PSU_VIDEO PSU_HSD PSU_DP MDS &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; VIDEO HSD DP ABB_LVL_1 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;8&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DECLARE HASH SEG(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEKEY (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ANLY_SEG_KEY'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDATA (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_2'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_3'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_LVL_1'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: purple; background: white;"&gt;'PSU_VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'MDS'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDONE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_SEG);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; SET TWR0TXV.ANALYSIS_SEGMENT END = EOF_SEG;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; RC = SEG.REPLACE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_UNIVERSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;SET &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._&amp;amp;START_DATE._1 END=EOF_UNIVERSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*PRODUCT HOLDING DETAILS*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;ABB_CORE_SEGMENT=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_2=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_3=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_LVL_1=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_VIDEO=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_HSD=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_DP=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; MDS=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; VIDEO=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; HSD=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; DP=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC=SEG.FIND();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;/* POST IS USED IN 1ST PASS FOR RC-AD, PRE IS USED FOR RD-DD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;IF SEG.FIND()=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; THEN POST_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ELSE POST_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'N'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RENAME ABB_CORE_SEGMENT = POST_ABB_CORE_SEGMENT &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_2 = POST_ABB_CORE_SEGMENT_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_3 = POST_ABB_CORE_SEGMENT_3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_LVL_1 = POST_ABB_LVL_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_VIDEO = POST_PSU_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_HSD = POST_PSU_HSD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_DP = POST_PSU_DP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDS = POST_MDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIDEO = POST_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSD = POST_HSD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DP = POST_DP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;OUTPUT; END; STOP; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._POST_TRANSACTIONS_2_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;END_DATE.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;LENGTH ABB_CORE_SEGMENT ABB_CORE_SEGMENT_2 ABB_CORE_SEGMENT_3 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; PSU_VIDEO PSU_HSD PSU_DP MDS &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; VIDEO HSD DP ABB_LVL_1 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;8&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DECLARE HASH SEG(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEKEY (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ANLY_SEG_KEY'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDATA (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_2'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_3'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_LVL_1'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'MDS'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDONE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_SEG);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; SET TWR0TXV.ANALYSIS_SEGMENT END = EOF_SEG;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; RC = SEG.REPLACE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_UNIVERSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;SET &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._PRE_POST_TRANSACTIONS_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;END_DATE.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt; END=EOF_UNIVERSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*PRODUCT HOLDING DETAILS*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;ABB_CORE_SEGMENT=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_2=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_3=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_LVL_1=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_VIDEO=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_HSD=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_DP=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; MDS=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; VIDEO=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; HSD=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; DP=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC=SEG.FIND();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;/* PRE IS USED IN 2ND PASS FOR RC-AD, POST IS USED FOR RD-DD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;IF SEG.FIND()=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; THEN PRE_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ELSE PRE_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'N'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RENAME ABB_CORE_SEGMENT = PRE_ABB_CORE_SEGMENT &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_2 = PRE_ABB_CORE_SEGMENT_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_3 = PRE_ABB_CORE_SEGMENT_3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_LVL_1 = PRE_ABB_LVL_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_VIDEO = PRE_PSU_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_HSD = PRE_PSU_HSD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_DP = PRE_PSU_DP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDS = PRE_MDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIDEO = PRE_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSD = PRE_HSD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DP = PRE_DP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;OUTPUT; END; STOP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 13:36:51 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2012-08-08T13:36:51Z</dc:date>
    <item>
      <title>Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86949#M257067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp; I am new to using hash and doing most of my learning while troubleshooting old code.&amp;nbsp; The following code has been used for a while, this is a small segment of a much larger piece.&amp;nbsp; If I run the code more than once the variables that start with 'pre' will not be consistent, meaning the code doesn't do the same thing two times in a row.&amp;nbsp; If anyone can look at this and see what the issue is I will be very appreciative.&amp;nbsp; I'm going to keep looking through sas papers and try to find the issue myself as well.&amp;nbsp; I'm not able to add this as a word doc so I added it as a pdf, if you would like it in any other format let me know.&amp;nbsp; I'll also paste it below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;********************************************************************************;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*** MERGE MIGRATION DATA WITH DISCO AND SEGMENT TABLES ***;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;********************************************************************************;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._&amp;amp;START_DATE._2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;LENGTH ABB_CORE_SEGMENT ABB_CORE_SEGMENT_2 ABB_CORE_SEGMENT_3 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; PSU_VIDEO PSU_HSD PSU_DP MDS &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; VIDEO HSD DP ABB_LVL_1 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;8&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DECLARE HASH SEG(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEKEY (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ANLY_SEG_KEY'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDATA (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_2'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_3'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_LVL_1'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: purple; background: white;"&gt;'PSU_VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'MDS'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDONE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_SEG);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; SET TWR0TXV.ANALYSIS_SEGMENT END = EOF_SEG;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; RC = SEG.REPLACE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_UNIVERSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;SET &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._&amp;amp;START_DATE._1 END=EOF_UNIVERSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*PRODUCT HOLDING DETAILS*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;ABB_CORE_SEGMENT=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_2=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_3=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_LVL_1=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_VIDEO=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_HSD=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_DP=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; MDS=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; VIDEO=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; HSD=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; DP=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC=SEG.FIND();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;/* POST IS USED IN 1ST PASS FOR RC-AD, PRE IS USED FOR RD-DD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;IF SEG.FIND()=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; THEN POST_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ELSE POST_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'N'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RENAME ABB_CORE_SEGMENT = POST_ABB_CORE_SEGMENT &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_2 = POST_ABB_CORE_SEGMENT_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_3 = POST_ABB_CORE_SEGMENT_3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_LVL_1 = POST_ABB_LVL_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_VIDEO = POST_PSU_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_HSD = POST_PSU_HSD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_DP = POST_PSU_DP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDS = POST_MDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIDEO = POST_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSD = POST_HSD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DP = POST_DP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;OUTPUT; END; STOP; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._POST_TRANSACTIONS_2_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;END_DATE.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;LENGTH ABB_CORE_SEGMENT ABB_CORE_SEGMENT_2 ABB_CORE_SEGMENT_3 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;16&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; PSU_VIDEO PSU_HSD PSU_DP MDS &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; VIDEO HSD DP ABB_LVL_1 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;8&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DECLARE HASH SEG(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEKEY (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ANLY_SEG_KEY'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDATA (&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_2'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_CORE_SEGMENT_3'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'ABB_LVL_1'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'PSU_DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'MDS'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'VIDEO'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'HSD'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'DP'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC = SEG.DEFINEDONE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_SEG);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; SET TWR0TXV.ANALYSIS_SEGMENT END = EOF_SEG;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp; RC = SEG.REPLACE();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;DO UNTIL (EOF_UNIVERSE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;SET &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;WORK.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;amp;FILE_TYPE._PRE_POST_TRANSACTIONS_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white;"&gt;END_DATE.&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt; END=EOF_UNIVERSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;*PRODUCT HOLDING DETAILS*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;ABB_CORE_SEGMENT=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_2=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_CORE_SEGMENT_3=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ABB_LVL_1=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_VIDEO=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_HSD=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; PSU_DP=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; MDS=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt;; VIDEO=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; HSD=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; DP=&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RC=SEG.FIND();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: green; background: white;"&gt;/* PRE IS USED IN 2ND PASS FOR RC-AD, POST IS USED FOR RD-DD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;IF SEG.FIND()=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: black; background: white;"&gt; THEN PRE_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;; ELSE PRE_SGMNT_MATCH = &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;'N'&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RENAME ABB_CORE_SEGMENT = PRE_ABB_CORE_SEGMENT &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_2 = PRE_ABB_CORE_SEGMENT_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_CORE_SEGMENT_3 = PRE_ABB_CORE_SEGMENT_3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABB_LVL_1 = PRE_ABB_LVL_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_VIDEO = PRE_PSU_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_HSD = PRE_PSU_HSD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSU_DP = PRE_PSU_DP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDS = PRE_MDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIDEO = PRE_VIDEO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSD = PRE_HSD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DP = PRE_DP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;OUTPUT; END; STOP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; background: white;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86949#M257067</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-08T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86950#M257068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Despite also being new to hashing, I have a reasonable guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention that this is part of a longer program.&amp;nbsp; Could it be that the longer program later on changes the order of the observations in the source of the hash table (TWR0TWX.ANALYSIS_SEGMENT)?&amp;nbsp; That would change the contents of the hash table the second time around, since it is being loaded using the REPLACE method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86950#M257068</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-08T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86951#M257069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the hash itself sort that dataset?&amp;nbsp; I'm not sure, is there another method I can use rather than replace to check what your theory is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86951#M257069</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-08T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86952#M257070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the hash is used so sort doesn't matter, unless something was actually manipulating the table it shouldn't matter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86952#M257070</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-08T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86953#M257071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hash doesn't affect the data set.&amp;nbsp; (There are cases where hashing is used to create an output data set, but that is not its function here.)&amp;nbsp; But sorting would impact the results IF you have multiple observations for the same ANLY_SEG_KEY.&amp;nbsp; The REPLACE method should be using the look-up information from the LAST observation for each ANLY_SEG_KEY.&amp;nbsp; So that is a check you could make, to verify whether there are any cases of multiple observations for the same ANLY_SEG_KEY.&amp;nbsp; If so, then look for sorting later on in the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86953#M257071</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-08T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86954#M257072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked and all of the anly_seg_keys are unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86954#M257072</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-08T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86955#M257073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, that's out.&amp;nbsp; Other changes might be possible that could change the contents of TWR0TWX.ANALYSIS_SEGMENT.&amp;nbsp; Later processing might add records, delete records, or change data values.&amp;nbsp; Other than that, I'm out of ideas though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86955#M257073</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-08T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86956#M257074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looked at that dataset and it hasn't been changed for years while this code is run weekly.&amp;nbsp; I'm going to replace the hash with a data step merge to verify that it's the hash that's causing the issue.&amp;nbsp; I can't find anything wrong with it and I suppose it could be something else, it's only these variables that change from one run to the next so I wanted to start here.&amp;nbsp; Thanks so much for taking a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86956#M257074</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-08T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86957#M257075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help last week, I thought I'd follow up with you and let you know what I found, unfortunately I had you on a wild goose chase, there is nothing wrong with the hash code, the issue was elsewhere in code that I did not post for propriety reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 18:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86957#M257075</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2012-08-13T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Check</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86958#M257076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 21:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-Check/m-p/86958#M257076</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-13T21:38:10Z</dc:date>
    </item>
  </channel>
</rss>

