<?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: Two Steps done at Same time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146557#M38898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; Patrick &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 00:15:39 GMT</pubDate>
    <dc:creator>BETO</dc:creator>
    <dc:date>2013-11-20T00:15:39Z</dc:date>
    <item>
      <title>Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146549#M38890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ive and issue on how to determine if a tech brought down both machine at same time. here is what I have now&lt;/P&gt;&lt;P&gt;machine1 start date 11/01/13 start time 14:00:00&amp;nbsp; end date 11/01/13 end time 14:06:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;machine2 Start date 11/01/13 Start time 14:04:00 end date 11/01/13&amp;nbsp;&amp;nbsp; end time 14:10:00 duration 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you see the machine 1 was still down when machine 2 was brought down&amp;nbsp; if machine 2 was brought down after 14:06:00 than thats ok .im looking for is if down time overlaps each other... thanks in advances &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 22:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146549#M38890</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2013-11-16T22:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146550#M38891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show about 10&amp;nbsp; records of what your data look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it something like:&lt;/P&gt;&lt;P&gt;Machine&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2000 12:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2000 18:00:00&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/6/2000 12:30:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/7/2000 04:04:00&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About how many records do you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the goal:&lt;/P&gt;&lt;P&gt;Find out if both machines were ever down at the same time?&lt;/P&gt;&lt;P&gt;Find out when both machines were down?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 00:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146550#M38891</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-11-17T00:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146551#M38892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Quentin. You need to provide more test cases and then tell us how the result should look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. what about a case like:&lt;/P&gt;&lt;P&gt;machine1 1/1/2000 12:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2000 12:10:00&lt;/P&gt;&lt;P&gt;machine2 1/1/2000 12:05:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2000 12:15:00&lt;/P&gt;&lt;P&gt;machine3 1/1/2000 12:12:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2000 12:20:00&lt;/P&gt;&lt;P&gt;machine1 1/1/2000 12:19:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2000 12:25:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should the report you're after look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 02:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146551#M38892</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-17T02:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146552#M38893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Quentin,&lt;/P&gt;&lt;P&gt;SIte Id&amp;nbsp;&amp;nbsp;&amp;nbsp; Machine.&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; Start time.&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; End time&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; dur time&lt;/P&gt;&lt;P&gt;162396.&amp;nbsp;&amp;nbsp;&amp;nbsp; A837.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13 12:18:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13 12:29:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;162396.&amp;nbsp;&amp;nbsp;&amp;nbsp; A836.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13 12:27:00&amp;nbsp;&amp;nbsp; 11/14/13&amp;nbsp; 12:33:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;111501.&amp;nbsp;&amp;nbsp;&amp;nbsp; N21.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13. 11:42:00&amp;nbsp; 11/14 /13 11:54:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;/P&gt;&lt;P&gt;296871.&amp;nbsp;&amp;nbsp; A077.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13 13:32:00&amp;nbsp; 11/14/13 13:40:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;296871.&amp;nbsp;&amp;nbsp; A076.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/14/13 13:40:00&amp;nbsp;&amp;nbsp; 11/14/13 13:44:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;i forgot to mention that we ID the site where machines are located so for example. 162396 we gave 2 machines at the location&amp;nbsp; I will be dealing on average 700 entries daily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;What's the goal:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Find out if both machines were ever down at the same time?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Find out when both machines were down?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; The goal is to determine if the machines were down at same time.....FYI Start time&amp;nbsp; is when the machine went down&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FOr example 162396 is what I would be looking for&amp;nbsp; the 2 machines at the same site Id&amp;nbsp; the down time overlap.... And 296871 would be one that&amp;nbsp; would be excluded because end time of one machine and start time of the 2nd machine is the same... Thanks agaiN I hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 03:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146552#M38893</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2013-11-17T03:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146553#M38894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table overlap as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select a.site_id, a.machine as a_machine, ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from log_tbl as A, log_tbl as B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.site_id=b.site_id and a.start_dttm&amp;lt;b.start_dttm and a.end_dttm&amp;gt;b.start_dttm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 03:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146553#M38894</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-17T03:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146554#M38895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Patrick,&lt;/P&gt;&lt;P&gt;i have a couple of questions what does"..." The 3 dots make refer to after machine?&lt;/P&gt;&lt;P&gt;and there is a comma right after the word machine should I add something else? Or not include the comma?&amp;nbsp; I'm getting and error&amp;nbsp; file work.log_tbl does not exist&amp;nbsp;&amp;nbsp; Thanks for the help&amp;nbsp; FYI the name of the table that I'm using is&amp;nbsp; Report&amp;nbsp; the columns where the date time field is called start time and end time should I just make refer to that with the code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 14:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146554#M38895</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2013-11-17T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146555#M38896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He probably means that you can add more columns specification if you wish. If not, just ignore it AND the preceding comma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 17:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146555#M38896</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-17T17:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146556#M38897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Beto&lt;/P&gt;&lt;P&gt;It's exactly as Linus said. And yes, of course, you need to replace table and column names with the ones in your data. That's why it's really worth to provide sample data (a data step creating a SAS work table) when asking for code as this will allow us to use your table and variable names as well as actually test the code we post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that in the code I've posted columns like "start_dttm" are supposed to contain SAS datetime values (so date and time from source combined).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 20:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146556#M38897</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-17T20:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Two Steps done at Same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146557#M38898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; Patrick &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 00:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Steps-done-at-Same-time/m-p/146557#M38898</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2013-11-20T00:15:39Z</dc:date>
    </item>
  </channel>
</rss>

