<?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: calculate overlapping staffing intervals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616023#M180276</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can remove b.provider_name from this clause:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	group by coalesce(a.encounter, b.encounter), b.provider_name, b.prov_title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For you second point, how can the day be determined for&amp;nbsp;&lt;SPAN&gt;procedures&amp;nbsp;occurring&amp;nbsp;over the span of more than one day?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 19:26:43 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-01-08T19:26:43Z</dc:date>
    <item>
      <title>calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/615987#M180255</link>
      <description>&lt;P&gt;New to the forum so I apologize if I'm not doing this right.&amp;nbsp; Using PCSAS 9.4.&amp;nbsp; I'm trying to create a report of how many minutes certain Staff doctors worked with Resident doctors or Nurses.&amp;nbsp; My raw data looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;encounter&lt;/TD&gt;&lt;TD&gt;start_time&lt;/TD&gt;&lt;TD&gt;stop_time&lt;/TD&gt;&lt;TD&gt;provider_name&lt;/TD&gt;&lt;TD&gt;prov_title&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;10:01am&lt;/TD&gt;&lt;TD&gt;11:56am&lt;/TD&gt;&lt;TD&gt;Dr. Apple&lt;/TD&gt;&lt;TD&gt;Staff&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;10:01am&lt;/TD&gt;&lt;TD&gt;10:54am&lt;/TD&gt;&lt;TD&gt;Dr. Orange&lt;/TD&gt;&lt;TD&gt;Resident&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;10:54am&lt;/TD&gt;&lt;TD&gt;11:10am&lt;/TD&gt;&lt;TD&gt;James Peach&lt;/TD&gt;&lt;TD&gt;Nurse&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;11:10am&lt;/TD&gt;&lt;TD&gt;11:56am&lt;/TD&gt;&lt;TD&gt;Dr. Orange&lt;/TD&gt;&lt;TD&gt;Resident&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to end up with is a summary of how many minutes each provider worked with the others, by encounter:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;encounter&lt;/TD&gt;&lt;TD&gt;staff&lt;/TD&gt;&lt;TD&gt;resident&lt;/TD&gt;&lt;TD&gt;nurse&lt;/TD&gt;&lt;TD&gt;mins&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;Dr. Apple&lt;/TD&gt;&lt;TD&gt;Dr. Orange&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;TD&gt;Dr. Apple&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;James Peach&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming some sort of RETAIN or ARRAY may be necessary, but I have little to no experience with these functions.&amp;nbsp; I appreciate any help!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/615987#M180255</guid>
      <dc:creator>land0220</dc:creator>
      <dc:date>2020-01-08T17:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616003#M180264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community !&lt;/P&gt;
&lt;P&gt;Here is an attempt to do that. Please test it.&lt;/P&gt;
&lt;P&gt;Assumption: times are related to the same day; we can only make a link between the Staff &amp;nbsp;and nurse / resident thanks to start/end time and encounter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table have2 as
	select distinct coalesce(a.encounter, b.encounter) as encounter,
		   a.provider_name as staff,
		   case when b.prov_title = "Resident" then b.provider_name
		   		else "" end as Resident,
		    case when b.prov_title = "Nurse" then b.provider_name
		   		else "" end as Nurse,
		   sum((b.stop_time - b.start_time)/60) as mins
	from (select * from have where prov_title = "Staff") as a 
		 inner join
		 (select * from have where prov_title ne "Staff") as b 
	on  a.encounter = b.encounter and
		a.start_time &amp;lt;= b.start_time &amp;lt;= a.stop_time and
		a.start_time &amp;lt;= b.stop_time &amp;lt;= a.stop_time
	group by coalesce(a.encounter, b.encounter), a.provider_name, b.prov_title;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 18:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616003#M180264</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-08T18:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616014#M180270</link>
      <description>&lt;P&gt;This gets me close!&amp;nbsp; Unfortunately, if an encounter has &amp;gt;1 Nurse, then all of the Nurses receive the same "mins" value (by Staff doc) rather than the mins for their respective time spent with the Staff doctor.&amp;nbsp; It looks something like this - where the 22 and 49 mins are how long each Staff doctor was on the case, rather than how long each Resident/Nurse was on the case with each Staff doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;encounter&lt;/TD&gt;&lt;TD&gt;staff&lt;/TD&gt;&lt;TD&gt;resident&lt;/TD&gt;&lt;TD&gt;nurse&lt;/TD&gt;&lt;TD&gt;mins&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Dr. Red&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Dr. Red&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Sally&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Dr. Blue&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Dr. Blue&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On an aside, you noted that this only works if the times are on the same day.&amp;nbsp; Since procedures can occur over the span of more than one day (e.g. emergency surgery overnight) does that change the syntax of this code very much?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 18:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616014#M180270</guid>
      <dc:creator>land0220</dc:creator>
      <dc:date>2020-01-08T18:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616023#M180276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can remove b.provider_name from this clause:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	group by coalesce(a.encounter, b.encounter), b.provider_name, b.prov_title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For you second point, how can the day be determined for&amp;nbsp;&lt;SPAN&gt;procedures&amp;nbsp;occurring&amp;nbsp;over the span of more than one day?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 19:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616023#M180276</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-08T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616044#M180285</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have2;
    set have;&lt;BR /&gt;    retain staff;
    if upcase(prov_title)='NURSE' then nurse=provider_name;
    if upcase(prov_title)='RESIDENT' then resident=provider_name;&lt;BR /&gt;    if upcase(prov_title)='STAFF' then staff=provider_name;&lt;BR /&gt;    mins=stop_time-start_time;
    drop provider_name prov_title;
run;

proc summary data=have2;
    class encounter staff resident nurse;
    types encounter*staff*resident encounter*staff*nurse;
    var mins;
    output out=want sum=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This does the desired calculations. You can sort data set WANT to get it in the order you showed in your problem statement.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616044#M180285</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-09T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616081#M180302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp; It's fairly straight forward in HASH i.e. if you are familiar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
infile cards truncover;
input encounter	(start_time	stop_time) (:time8.)	provider_name &amp;amp; $12. prov_title $:12.;
format start_time	stop_time time8.;
cards;
1234	10:01am	11:56am	Dr. Apple	   Staff
1234	10:01am	10:54am	Dr. Orange	   Resident
1234	10:54am	11:10am	James Peach	   Nurse
1234	11:10am	11:56am	Dr. Orange	   Resident
;

data want;
 if _n_=1 then do;
   dcl hash H (multidata: "y") ;
   h.definekey  ("_n_") ;
   h.definedata ("s1", "s2", "prov_name","prov_title1") ;
   h.definedone () ;
   dcl hiter hi('h');
 end;
 do until(last.encounter);
  set have;
  by encounter;
  s1=start_time;
  s2=stop_time;
  if  prov_title ^= "Staff" then do;
    prov_name=provider_name;
	prov_title1=prov_title;
	h.add();
  end;
 end;
 do until(last.encounter);
  set have;
  by encounter;
  if prov_title = "Staff" then do;
   do while(hi.next()=0);
    if s1&amp;lt;start_time and s2&amp;lt;start_time or s1&amp;gt;stop_time and s2&amp;gt;stop_time then continue;
	t=s1-start_time;
	if t&amp;lt;=0 then t1=sum(abs(t),s1);
	else t1=sum(t,start_time);
	u=s2-stop_time;
	if u&amp;lt;=0 then u1=s2;
	else u1=s2-u;
	overlap=intck('minute',t1,u1);
	output;
	call missing(of u:,of t:);
   end;
  end;
 end;
 h.clear();
 keep encounter provider_name prov_title prov_title1 prov_name Overlap;
run;

/*Summary*/
proc summary data=want nway noprint;
 class encounter provider_name prov_title prov_title1 prov_name;
 var overlap;
 output out=summary(drop=_:) sum=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: If you say your knowledge of HASH is sound, I can combine PROC SUMMARY step and HASH Double DOW into one. Just that code maintenance and editing would get harder let alone strain to our eyes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 22:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616081#M180302</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-08T22:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616088#M180306</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp; Here is a PROC SQL solution&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data have;
infile cards truncover;
input encounter	(start_time	stop_time) (:time8.)	provider_name &amp;amp; $12. prov_title $:12.;
format start_time	stop_time time8.;
cards;
1234	10:01am	11:56am	Dr. Apple	   Staff
1234	10:01am	10:54am	Dr. Orange	   Resident
1234	10:54am	11:10am	James Peach	   Nurse
1234	11:10am	11:56am	Dr. Orange	   Resident
;

proc sql;
create table want as
select encounter, provider_name, prov_title, prov_title1, prov_name, sum(overlap) as Overlap
from
(select a.encounter, a.provider_name, a.prov_title,
b.prov_title as prov_title1,b.provider_name as prov_name,
a.start_time,a.stop_time,
ifn(b.start_time-a.start_time&amp;lt;=0,sum(abs(b.start_time-a.start_time),b.start_time),
sum(b.start_time-a.start_time,a.start_time)) as t1,
ifn(b.stop_time-a.stop_time&amp;lt;=0,b.stop_time,b.stop_time-(b.stop_time-a.stop_time)) as u1,
intck('minute',calculated t1,calculated u1) as Overlap

from have(where=(prov_title = "Staff")) a ,have(where=(prov_title ^= "Staff")) b
where a.encounter=b.encounter and
not (b.start_time&amp;lt;a.start_time and b.stop_time&amp;lt;a.start_time or
b.start_time&amp;gt;a.stop_time and b.start_time&amp;gt;a.stop_time))
group by encounter ,provider_name, prov_title, prov_title1, prov_name
order by a.encounter, a.provider_name, a.prov_title,prov_title1,prov_name;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 23:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616088#M180306</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-08T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616201#M180368</link>
      <description>&lt;P&gt;Again, I am concerned about the proliferation of very complex SQL to achieve a solution to this problem, or using complex (even though it was called "fairly straight forward", I consider it complex) hash solutions for this problem, which can be solved with a DATA step and PROC SUMMARY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Especially when the questioner is likely to be a relatively new SAS programmer, I think we as a community ought to give solutions that use relatively simple tools that a new SAS programmer might be able to grasp (well, tools as simple as can be for the problem stated; obviously some problems — not this one — do require complex solutions involving one or more of hash, complex SQL, macros, etc.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also ask a question ... it was my understanding that hash solutions were designed to overcome performance problems, rather than a tool that is to be applied to any data re-arranging problem. Is that a correct understanding?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616201#M180368</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-09T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616227#M180381</link>
      <description>&lt;P&gt;Good morning Sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; &amp;nbsp; I quite agree and second to your thoughts and understanding. Of course, it's always better to deliver&amp;nbsp;&lt;SPAN&gt;just what the&amp;nbsp;doctor ordered. I admit we the "&lt;EM&gt;frequent users"&lt;/EM&gt; should be mindful of the needs of the OP. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nonetheless, unlike this OP where he/she clearly mentioned "&lt;/SPAN&gt;&lt;EM&gt;I'm assuming some sort of RETAIN or ARRAY may be necessary, but I have &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;little to no experience&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; with these functions.&amp;nbsp; I appreciate any help!"&amp;nbsp; ,&lt;/EM&gt;&lt;SPAN&gt;which I should have taken note of and been mindful, some OPs give mixed signals as they seem to have the idea of the concepts and often pick fancy solutions let alone that goes into a wheel-spin getting back to the community with&amp;nbsp; follow up questions soon as a change is required.&amp;nbsp; So in this case, I suppose the intent is perhaps to experiment something they know but unable to practically implement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus , sometimes the New user/other contributor tags seem to &lt;EM&gt;not reflect&lt;/EM&gt; the real experience/knowledge of the user and that is something very difficult to tell. For example,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp; &amp;nbsp; impresses me so much having not been in the community long. Well, I trust this can only be clarified by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14323"&gt;@ShelleySessoms&lt;/a&gt;(&lt;EM&gt;if she can lend a moment)&lt;/EM&gt;&amp;nbsp; &amp;nbsp; as to what the &lt;EM&gt;tags&lt;/EM&gt; mean to understand and make an assumption of the likely solutions that the OP is after.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With respect to your understanding of HASH, you are certainly correct but here it basically adds to the buffet menu. I give in to you for the clear reasoning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616227#M180381</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-09T15:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616230#M180383</link>
      <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;This pleases me as I am in professional retraining since a couple of months to become a SAS programmer and I learn a lot from the community to achieve this.&lt;BR /&gt;You, Kurt, Paige, ... impress me so much !!</description>
      <pubDate>Thu, 09 Jan 2020 15:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616230#M180383</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-09T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616232#M180385</link>
      <description>&lt;P&gt;Happy to jump in here&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;. By "tags" I believe you mean the rankings associated with the user (new user, super contributor, super user). If that is the case, those rankings are assigned (and change) based on experiences within the community, &lt;EM&gt;not&lt;/EM&gt; with SAS itself. So I would not use those rankings to make any assumptions about an OP's experience with SAS software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Shelley&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616232#M180385</guid>
      <dc:creator>ShelleySessoms</dc:creator>
      <dc:date>2020-01-09T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616234#M180387</link>
      <description>&lt;P&gt;Thank you. So may be this opens a case to include a point in the "&lt;EM&gt;How to ask a good question"&lt;/EM&gt;&amp;nbsp; to mention OP's experience/knowledge levels.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616234#M180387</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-09T15:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616244#M180388</link>
      <description>&lt;P&gt;For what it's worth, I'm a "New User" to posting in this forum, but I'm not a new user of SAS.&amp;nbsp; I certainly wouldn't say my skills are advanced, but I'm definitely not a beginner, if that makes sense.&amp;nbsp; I've used this forum for years to help me solve "problems" in SAS, and this is the first time I couldn't find a solution for my need, hence the post.&amp;nbsp; I hope I didn't cause any problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PROC SQL solutions both did what I needed (had to tweak the first one a bit).&amp;nbsp; I'm not familiar with HASH so I didn't try that.&amp;nbsp; I'd also be open to non-SQL methods (DATA step) if someone has any to suggest.&amp;nbsp; I'm happy to have found a solution that works, but open to learning more than one method to achieve the results I desire.&amp;nbsp; Thanks to everyone for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616244#M180388</guid>
      <dc:creator>land0220</dc:creator>
      <dc:date>2020-01-09T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616245#M180389</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp; To your "&lt;EM&gt;I hope I didn't cause any problems."&lt;/EM&gt; Chilax, I hope didn't mention anything that gave rise to your thinking of&amp;nbsp; causing problem. Jesus!, is my communication that bad. The context of the discussion was about how to help OP's the best way we can rather than throw up everything just because there is a possibility. I hope you get the point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The community managers and users(you and me) are continuously improving how to make this forum a better place to &lt;EM&gt;ask, find and share. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&amp;nbsp; I will have a pint for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306108"&gt;@land0220&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For what it's worth, I'm a "New User" to posting in this forum, but I'm not a new user of SAS.&amp;nbsp; I certainly wouldn't say my skills are advanced, but I'm definitely not a beginner, if that makes sense.&amp;nbsp; I've used this forum for years to help me solve "problems" in SAS, and this is the first time I couldn't find a solution for my need, hence the post.&amp;nbsp; I hope I didn't cause any problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PROC SQL solutions both did what I needed (had to tweak the first one a bit).&amp;nbsp; I'm not familiar with HASH so I didn't try that.&amp;nbsp; I'd also be open to non-SQL methods (DATA step) if someone has any to suggest.&amp;nbsp; I'm happy to have found a solution that works, but open to learning more than one method to achieve the results I desire.&amp;nbsp; Thanks to everyone for your help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616245#M180389</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-09T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: calculate overlapping staffing intervals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616247#M180390</link>
      <description>&lt;P&gt;I'm quite "chilaxed" over here actually, just trying to tread lightly in my first post/thread on the board, that's all.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your solution - did exactly what I needed to do!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculate-overlapping-staffing-intervals/m-p/616247#M180390</guid>
      <dc:creator>land0220</dc:creator>
      <dc:date>2020-01-09T16:08:17Z</dc:date>
    </item>
  </channel>
</rss>

