<?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: Changes within a test number in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575714#M34278</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your comment. I have added an excel file.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 09:31:37 GMT</pubDate>
    <dc:creator>HansSteenhuis</dc:creator>
    <dc:date>2019-07-23T09:31:37Z</dc:date>
    <item>
      <title>Changes within a test number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575707#M34276</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is this possible in EC? If something changes in the test result, it must continue to give the value "semi_start" within the test number in the column EG_RESULT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much for the comments&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575707#M34276</guid>
      <dc:creator>HansSteenhuis</dc:creator>
      <dc:date>2019-07-23T09:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changes within a test number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575713#M34277</link>
      <description>&lt;P&gt;Yes, it is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide more detail like sample data (not just a screenshot) and desired result. Below some guidelines how to ask a question which helps us to help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Getting-Started/How-to-get-fast-helpful-answers/ta-p/226133" target="_blank"&gt;https://communities.sas.com/t5/Getting-Started/How-to-get-fast-helpful-answers/ta-p/226133&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575713#M34277</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-23T09:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changes within a test number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575714#M34278</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your comment. I have added an excel file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575714#M34278</guid>
      <dc:creator>HansSteenhuis</dc:creator>
      <dc:date>2019-07-23T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changes within a test number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575716#M34279</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have just added a sas table as an example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575716#M34279</guid>
      <dc:creator>HansSteenhuis</dc:creator>
      <dc:date>2019-07-23T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changes within a test number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575812#M34283</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194784"&gt;@HansSteenhuis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a SAS datastep creating the data is easiest for "us". I'm using SAS on a remote server and though would have to upload any SAS file prior to using it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below Have table created via the EG import wizard.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have;
    LENGTH
        TESTNUMBER         8
        DATE               8
        RESULT           $ 4
        EG_RESULT        $ 10 ;
    FORMAT
        TESTNUMBER       BEST12.
        DATE             DATE9.
        RESULT           $CHAR4.
        EG_RESULT        $CHAR10. ;
    INFORMAT
        TESTNUMBER       BEST12.
        DATE             DATE9.
        RESULT           $CHAR4.
        EG_RESULT        $CHAR10. ;
    INFILE DATALINES4
        DLM='7F'x
        MISSOVER
        DSD ;
    INPUT
        TESTNUMBER       : BEST32.
        DATE             : BEST32.
        RESULT           : $CHAR4.
        EG_RESULT        : $CHAR10. ;
DATALINES4;
1125&amp;#127;20870&amp;#127;GOOD&amp;#127;start
1125&amp;#127;20909&amp;#127;GOOD&amp;#127;start
1125&amp;#127;20940&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21027&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21109&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21250&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21361&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21465&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21549&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21654&amp;#127;GOOD&amp;#127;start
1125&amp;#127;21703&amp;#127;GOOD&amp;#127;start
2548&amp;#127;20979&amp;#127;GOOD&amp;#127;start
2548&amp;#127;21026&amp;#127;GOOD&amp;#127;start
2548&amp;#127;21066&amp;#127;GOOD&amp;#127;start
2548&amp;#127;21158&amp;#127;GOOD&amp;#127;start
2548&amp;#127;21448&amp;#127;XXX&amp;#127;semi_start
2548&amp;#127;21466&amp;#127;XXX&amp;#127;semi_start
2548&amp;#127;21515&amp;#127;XXX&amp;#127;semi_start
2548&amp;#127;21594&amp;#127;XXX&amp;#127;semi_start
2548&amp;#127;21647&amp;#127;XXX&amp;#127;semi_start
2548&amp;#127;21469&amp;#127;GOOD&amp;#127;semi_start
2548&amp;#127;21496&amp;#127;GOOD&amp;#127;semi_start
2548&amp;#127;21556&amp;#127;GOOD&amp;#127;semi_start
;;;;

data want;
  set have;
  by testnumber result notsorted;
  length eg_result2 $10;
  retain eg_result2;
  if first.testnumber then eg_result2='start';
  else if first.result then eg_result2='semi_start';
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 418px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31234i98ECECC2286FDB21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 08:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changes-within-a-test-number/m-p/575812#M34283</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-24T08:10:06Z</dc:date>
    </item>
  </channel>
</rss>

