<?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: How to submit the same job 64 times with one submit? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315874#M68946</link>
    <description>&lt;P&gt;First of all, your system admin should be able to tell you the maximum number of concurrent processes per user, if such a limit has been set; on the UNIX systems I know, that would need running some kind of workload manager, as the default is that there is no limit.&lt;/P&gt;
&lt;P&gt;For all practical purposes, the technical limit of processes in UNIX systems is so large that other limitations come into effect (memory) before one runs out of space in the process table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To simply check if a certain number of process can run in parallel, I'd write a shell script like that:&lt;/P&gt;
&lt;PRE&gt;COUNT=0
while [[ COUNT -lt 64 ]]
do
  /usr/bin/sleep 10&amp;amp;
  COUNT=$(($COUNT + 1))
done
wait
&lt;/PRE&gt;
&lt;P&gt;save it to every node (don't forget to chmod u+x), and run it from SAS with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe '/path/script 2&amp;gt;&amp;amp;1';

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so you catch all output. The script should be lying dormant with all its children for 10 seconds and then return.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that this only checks the number-of-processes issue; depending on settings like MEMSIZE (and the type of steps run), SAS processes might hit other limits much earlier. Which also might cause a system to become (nearly) unresponsive.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 10:18:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-12-01T10:18:04Z</dc:date>
    <item>
      <title>How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315599#M68871</link>
      <description>&lt;P&gt;My preference is to do this interactively versus batch, but it's not necessary.&amp;nbsp; I simply want to submit:&lt;/P&gt;&lt;PRE&gt;data _null_;
slept= sleep(1*60);
run;&lt;/PRE&gt;&lt;P&gt;64 times all at once to confirm 64 jobs will run simultaneously.&amp;nbsp; I post this assuming that there's a more clever way than repeating the code 64x.&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>Wed, 30 Nov 2016 16:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315599#M68871</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2016-11-30T16:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315678#M68897</link>
      <description>How are you submitting this?  Are you using SAS/CONNECT or a SAS GRID server or just running sas.exe 64 times?</description>
      <pubDate>Wed, 30 Nov 2016 20:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315678#M68897</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-11-30T20:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315679#M68898</link>
      <description>&lt;P&gt;We have a GRID setup with 7 compute nodes.&amp;nbsp; The interface is SAS Studio 3.5.&amp;nbsp; Each host is setup to handle 32 jobs.&amp;nbsp; I'm increasing that to 64 and need a simple test to confirm 64 jobs will run.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 20:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315679#M68898</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2016-11-30T20:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315684#M68900</link>
      <description>I wonder if you'd be better posting this in &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin&lt;/A&gt; ? (Not sure, i'm not regular enough here to know how topics fall out among the communities.)</description>
      <pubDate>Wed, 30 Nov 2016 20:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315684#M68900</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-11-30T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315688#M68901</link>
      <description>&lt;P&gt;I assumed this is more of a programming question than an admin task.&amp;nbsp; You may be right, though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 20:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315688#M68901</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2016-11-30T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315874#M68946</link>
      <description>&lt;P&gt;First of all, your system admin should be able to tell you the maximum number of concurrent processes per user, if such a limit has been set; on the UNIX systems I know, that would need running some kind of workload manager, as the default is that there is no limit.&lt;/P&gt;
&lt;P&gt;For all practical purposes, the technical limit of processes in UNIX systems is so large that other limitations come into effect (memory) before one runs out of space in the process table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To simply check if a certain number of process can run in parallel, I'd write a shell script like that:&lt;/P&gt;
&lt;PRE&gt;COUNT=0
while [[ COUNT -lt 64 ]]
do
  /usr/bin/sleep 10&amp;amp;
  COUNT=$(($COUNT + 1))
done
wait
&lt;/PRE&gt;
&lt;P&gt;save it to every node (don't forget to chmod u+x), and run it from SAS with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe '/path/script 2&amp;gt;&amp;amp;1';

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so you catch all output. The script should be lying dormant with all its children for 10 seconds and then return.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that this only checks the number-of-processes issue; depending on settings like MEMSIZE (and the type of steps run), SAS processes might hit other limits much earlier. Which also might cause a system to become (nearly) unresponsive.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 10:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315874#M68946</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-01T10:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315875#M68947</link>
      <description>&lt;P&gt;PS running ulimit -u on the nodes should tell you the limit for concurrent processes, if such is set.&lt;/P&gt;
&lt;P&gt;Also run ulimit -Hu to see if there is a difference between the soft and hard limits (hard limits are set by the superuser and cannot be changed).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 10:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315875#M68947</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-01T10:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to submit the same job 64 times with one submit?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315932#M68961</link>
      <description>&lt;P&gt;Thank you, Kurt.&amp;nbsp; All our SAS servers are Windows servers and I'm looking for testing SAS jobs, not processes.&amp;nbsp; You can establish a max jobs/queue or host within SAS GRID/LSF.&amp;nbsp; I'm increasing the max jobs or MXJ and need a test to prove that the change was effective.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-submit-the-same-job-64-times-with-one-submit/m-p/315932#M68961</guid>
      <dc:creator>dgower</dc:creator>
      <dc:date>2016-12-01T13:39:17Z</dc:date>
    </item>
  </channel>
</rss>

