<?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 EG 5.1 Speciying conditions on multiple datasets in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-5-1-Speciying-conditions-on-multiple-datasets/m-p/171778#M13140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;muHello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are setting up Enterprise Guide to schedule our daily tasks. What we are trying to do is condition the running of certain programs when values in several datasets have been updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if we try and specify conditions on values in a more than one SAS dataset, EG seems to ignore all but one of the files when it generates the condition code. So for example if we say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"run on the condition where last value of column &lt;STRONG&gt;i&lt;/STRONG&gt; in dataset &lt;STRONG&gt;data1&lt;/STRONG&gt; equal to 100, AND last value of column &lt;STRONG&gt;i2&lt;/STRONG&gt; in dataset &lt;STRONG&gt;data2 &lt;/STRONG&gt;equal to 100"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code generated is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _NULL_; rc=0;&lt;/P&gt;&lt;P&gt;set work.data2 nobs=numobs point=numobs;&lt;/P&gt;&lt;P&gt;if i=100 and i2=100 then&lt;/P&gt;&lt;P&gt;rc=1;&lt;/P&gt;&lt;P&gt;CALL SYMPUT(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '_ergc', PUT(rc,1));&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it's included the two colunms, i and i2, it's only refered to data2, not data1 too. This is odd because it allows you add as many conditions involving different datasets as you like, it doesn't tell you that you can't, but the code it generate ignores all except one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this? Is it just that EG cannot do conditions on multiple datasets, but the dialogue box to add the conditions does not detect this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 16:12:08 GMT</pubDate>
    <dc:creator>JamesNewcombe</dc:creator>
    <dc:date>2014-02-12T16:12:08Z</dc:date>
    <item>
      <title>EG 5.1 Speciying conditions on multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-5-1-Speciying-conditions-on-multiple-datasets/m-p/171778#M13140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;muHello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are setting up Enterprise Guide to schedule our daily tasks. What we are trying to do is condition the running of certain programs when values in several datasets have been updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if we try and specify conditions on values in a more than one SAS dataset, EG seems to ignore all but one of the files when it generates the condition code. So for example if we say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"run on the condition where last value of column &lt;STRONG&gt;i&lt;/STRONG&gt; in dataset &lt;STRONG&gt;data1&lt;/STRONG&gt; equal to 100, AND last value of column &lt;STRONG&gt;i2&lt;/STRONG&gt; in dataset &lt;STRONG&gt;data2 &lt;/STRONG&gt;equal to 100"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code generated is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _NULL_; rc=0;&lt;/P&gt;&lt;P&gt;set work.data2 nobs=numobs point=numobs;&lt;/P&gt;&lt;P&gt;if i=100 and i2=100 then&lt;/P&gt;&lt;P&gt;rc=1;&lt;/P&gt;&lt;P&gt;CALL SYMPUT(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '_ergc', PUT(rc,1));&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it's included the two colunms, i and i2, it's only refered to data2, not data1 too. This is odd because it allows you add as many conditions involving different datasets as you like, it doesn't tell you that you can't, but the code it generate ignores all except one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this? Is it just that EG cannot do conditions on multiple datasets, but the dialogue box to add the conditions does not detect this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-5-1-Speciying-conditions-on-multiple-datasets/m-p/171778#M13140</guid>
      <dc:creator>JamesNewcombe</dc:creator>
      <dc:date>2014-02-12T16:12:08Z</dc:date>
    </item>
  </channel>
</rss>

