<?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: Calculation of sojourn time in SAS Simulation Studio in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266480#M1303</link>
    <description>&lt;P&gt;Thank you Emily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 18:16:00 GMT</pubDate>
    <dc:creator>Alonzo</dc:creator>
    <dc:date>2016-04-26T18:16:00Z</dc:date>
    <item>
      <title>Calculation of sojourn time in SAS Simulation Studio</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266181#M1300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS Simulation Studio 13.2 for developing service business model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the simulation process, I would like to track sojourn time of every entities and assign different attibute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS sim studio, so I do not know how to calculate sojourn time (I guess birth time of entity is automatically assigned, but couldn't find the way to see sojourn time (= current time - birth time)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know how to calculate sojourn time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 20:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266181#M1300</guid>
      <dc:creator>Alonzo</dc:creator>
      <dc:date>2016-04-25T20:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of sojourn time in SAS Simulation Studio</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266347#M1302</link>
      <description>&lt;P&gt;There are a couple of different options that you can calculate the time in system in Simulation Studio. &amp;nbsp;First, the Bucket block will automatically calculate a value called Age for each entity that passes through it. &amp;nbsp;For each entity that passes through the Bucket, a row is added to a data model and the columns of that data model are the entity attribute values (including Age). &amp;nbsp;You can write the contents of the Bucket to a SAS data set. &amp;nbsp;The Bucket also has an OutAge port that allows you to pass the Age value to another place in the model. &amp;nbsp;In the attached simple model, the OutAge port of the Bucket is connected to a Number Holder block with the Collect Data option selected. &amp;nbsp;The Number Holder block can then be used to save only the Age attribute values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other option is to manually compute the sojourn time using the Formula block and then assign the value to an entity attribute using a Modifier block. &amp;nbsp;There is a default attribute called BirthTime that each entity is assigned when it is created. &amp;nbsp; In the attached screenshot, the Formula used to calculate the SojournTime is shown.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12487i4E86C83AD9AB64C2/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SojournTimeExample.PNG" title="SojournTimeExample.PNG" /&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266347#M1302</guid>
      <dc:creator>EmilyLada</dc:creator>
      <dc:date>2016-04-26T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of sojourn time in SAS Simulation Studio</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266480#M1303</link>
      <description>&lt;P&gt;Thank you Emily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Calculation-of-sojourn-time-in-SAS-Simulation-Studio/m-p/266480#M1303</guid>
      <dc:creator>Alonzo</dc:creator>
      <dc:date>2016-04-26T18:16:00Z</dc:date>
    </item>
  </channel>
</rss>

