<?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: Need A SAS Program to Run for Specific Lenght of Time in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234995#M3613</link>
    <description>Excellent! Thank you. This is exactly what I needed.</description>
    <pubDate>Tue, 17 Nov 2015 13:02:22 GMT</pubDate>
    <dc:creator>dgower</dc:creator>
    <dc:date>2015-11-17T13:02:22Z</dc:date>
    <item>
      <title>Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234631#M3593</link>
      <description>&lt;P&gt;I'm trying to test RTM and I need to be able to submit a job that will run for say 5 or 10 minutes so I can see how RTM is functioning while a job is running.&amp;nbsp; Does anyone know of some generic SAS code/program that can be adjusted to run for a specific number of minutes?&amp;nbsp; The option to stress the CPU and memory of the servers would be a huge plus.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234631#M3593</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2015-11-19T21:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Lenght of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234640#M3594</link>
      <description>&lt;P&gt;Well, there is the sleep() function:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you could set a series of datasteps upd with do loops for specified number of loops. &amp;nbsp;However most of base SAS is based on CPU/memory, so changing that will change the run time. &amp;nbsp;But timing is provided, so you can see that datastep x takes y seconds in this run, and z in that run and see the difference between.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234640#M3594</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-11-13T15:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Lenght of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234666#M3595</link>
      <description>Thanks!</description>
      <pubDate>Fri, 13 Nov 2015 17:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234666#M3595</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2015-11-13T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234925#M3610</link>
      <description>&lt;P&gt;Submit this code.&amp;nbsp; It will run for a while and rev up the CPU!&amp;nbsp; Adjust the loop iteration counts to adjust the run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp;&amp;nbsp; do i=1 to 1000000000;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do j=1 to 1000000000;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k=i*j;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l=mod(k,2499900001);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;
&amp;nbsp;&amp;nbsp; end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234925#M3610</guid>
      <dc:creator>bdoug</dc:creator>
      <dc:date>2015-11-19T21:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Lenght of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234995#M3613</link>
      <description>Excellent! Thank you. This is exactly what I needed.</description>
      <pubDate>Tue, 17 Nov 2015 13:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/234995#M3613</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2015-11-17T13:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235848#M3642</link>
      <description>&lt;P&gt;While the looping code might accomplish the execution time, it might be worthwhile to note that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;'s sleep() function might be more code efficient and CPU efficient.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2015 12:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235848#M3642</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2015-11-21T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235860#M3645</link>
      <description>You can use&lt;BR /&gt;a/ sleep without any load on the system&lt;BR /&gt;b/ a cpu loop causing just cpu load&lt;BR /&gt;c/ a hash object or buffers with sort causing load on memory change the sizing for load on IO&lt;BR /&gt;d/ have a load to an external rdbms so network traffic can get loaded heavily&lt;BR /&gt;Tuning load balancing is also on the resource geeting the overload.</description>
      <pubDate>Sat, 21 Nov 2015 16:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235860#M3645</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-11-21T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Lenght of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235979#M3648</link>
      <description>&lt;P&gt;Despite reducing the numbers by several digits, this loop ran for 6+ hours and the CPU never spiked.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 14:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/235979#M3648</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2015-11-23T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/236001#M3649</link>
      <description>Of course you will not see a spike in cpu. It is a single threaded process limited to one cpu processor.&lt;BR /&gt;You will have to run this at the same time by the number of expected users. It can spread every task on may of those processors. Using a multithreaded proc will show an other load</description>
      <pubDate>Mon, 23 Nov 2015 15:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/236001#M3649</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-11-23T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need A SAS Program to Run for Specific Length of Time</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/309586#M6457</link>
      <description>&lt;P&gt;Data _null_;&lt;/P&gt;
&lt;P&gt;Endtime=time()+10*60 /* 10 MIN - change for needed duration */ ;&lt;/P&gt;
&lt;P&gt;Do while(time() le Endtime);&lt;/P&gt;
&lt;P&gt;/* BESPOKE CODE TO CREATE STRESS */&lt;/P&gt;
&lt;P&gt;End;&lt;/P&gt;
&lt;P&gt;Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There will be some cpu overhead in this job due to calling the time function several times.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 10:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-A-SAS-Program-to-Run-for-Specific-Length-of-Time/m-p/309586#M6457</guid>
      <dc:creator>ISedgwick</dc:creator>
      <dc:date>2016-11-06T10:50:00Z</dc:date>
    </item>
  </channel>
</rss>

