<?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 SAS Parallel Sessions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386545#M92596</link>
    <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to ask about the parallel sessions in SAS and how to make it work, with wait =no option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running 3 sessions in parallel using :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%LET rc=%sysfunc(grdsvc_enable(_ALL_,server=SASAPP));

signon sess1 inheritlib=(Work=locwork otp=otp);
signon sess2 inheritlib=(Work=locwork otp=otp);
signon sess3 inheritlib=(Work=locwork otp=otp);

rsubmit sess1 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

rsubmit sess2 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

rsubmit sess3 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

waitfor _all_ sess1 sess2 sess3;
signoff _all_;

***************************************************;
* common code after al sessions have completed    *;
***************************************************;


&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;However it kept failing until I removed the wait=no option, and that essentially made the session run sequentially one after the other instead of running them in parallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be a big efficiency booster for many of my codes, if we can get this figured by experts from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 10:40:21 GMT</pubDate>
    <dc:creator>adityaa9z</dc:creator>
    <dc:date>2017-08-09T10:40:21Z</dc:date>
    <item>
      <title>SAS Parallel Sessions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386545#M92596</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to ask about the parallel sessions in SAS and how to make it work, with wait =no option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running 3 sessions in parallel using :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%LET rc=%sysfunc(grdsvc_enable(_ALL_,server=SASAPP));

signon sess1 inheritlib=(Work=locwork otp=otp);
signon sess2 inheritlib=(Work=locwork otp=otp);
signon sess3 inheritlib=(Work=locwork otp=otp);

rsubmit sess1 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

rsubmit sess2 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

rsubmit sess3 wait=no;
***************************************************;
* Code for session 1                              *;
***************************************************;
endrsubmit; 

waitfor _all_ sess1 sess2 sess3;
signoff _all_;

***************************************************;
* common code after al sessions have completed    *;
***************************************************;


&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;However it kept failing until I removed the wait=no option, and that essentially made the session run sequentially one after the other instead of running them in parallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be a big efficiency booster for many of my codes, if we can get this figured by experts from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386545#M92596</guid>
      <dc:creator>adityaa9z</dc:creator>
      <dc:date>2017-08-09T10:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Parallel Sessions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386548#M92597</link>
      <description>&lt;P&gt;Can you paste the part of the log where you are getting the error message please?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386548#M92597</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-09T10:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Parallel Sessions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386569#M92609</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Below is the log.&lt;BR /&gt;&lt;BR /&gt;NOTE: Remote submit to SESS2 complete.&lt;BR /&gt;&lt;BR /&gt;ERROR: An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;BR /&gt;&lt;BR /&gt;The SAS task name is [CONNECT ]&lt;BR /&gt;Segmentation Violation&lt;BR /&gt;&lt;BR /&gt;Traceback of the Exception:&lt;BR /&gt;&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sas() [0x5280fe]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sas() [0x41f0ee]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x144) [0x2b80c07dd5d4]&lt;BR /&gt;/lib64/libpthread.so.0() [0x321000f7e0]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasods(+0x9a869) [0x2b8150eaa869]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasods(wobmth+0x57) [0x2b8151060417]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasods(vector+0x27a) [0x2b8150ec4bda]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasxkern(ypoutf+0x6d2) [0x2b80d09428d2]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasxkern(ypprnx+0x144) [0x2b80d094bc74]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sasxkern(yppflsh+0x77) [0x2b80d094ba77]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/saszrlnk(+0x93144) [0x2b8105366144]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/saszrlnk(lsbsfls+0x392) [0x2b8105365a52]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/saszrlnk(ls+0x1c88) [0x2b810535eba8]&lt;BR /&gt;/sso/sfw/sas/940/SASFoundation/9.4/sasexe/sas(vvtentr+0x101) [0x41ed01]&lt;BR /&gt;/lib64/libpthread.so.0() [0x3210007aa1]&lt;BR /&gt;/lib64/libc.so.6(clone+0x6d) [0x320fce8aad]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I googled this error it was mentioned that removing wait=no option should fix this, but doing that runs the sessions sequentially and not parallely.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386569#M92609</guid>
      <dc:creator>adityaa9z</dc:creator>
      <dc:date>2017-08-09T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Parallel Sessions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386571#M92610</link>
      <description>&lt;P&gt;I think you'll have to raise this with SAS Support which you can do from this form -&amp;nbsp;&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree removing wait=no sort of negates the whole point of using this technique.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386571#M92610</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-09T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Parallel Sessions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386623#M92638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to establish a connection without the inheritlib= option?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;signon sess1 signonwait=no;
signon sess2 signonwait=no;

rsubmit sess1 wait=no;
   data _null_; rc=sleep(5,1); run;
endrsubmit; 

rsubmit sess2 wait=no;
   data _null_; rc=sleep(5,1); run;
endrsubmit; 

waitfor _all_ sess1 sess2;
signoff _all_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Ensure you can get the Parallel connections, then move into inherited libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:44:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Parallel-Sessions/m-p/386623#M92638</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2017-08-09T13:44:18Z</dc:date>
    </item>
  </channel>
</rss>

