<?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: SAS/CONNECT Parallel Processing Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18011#M2661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming this Patrick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspected that this might be the case as the SUGI Paper 124-29, page 3 section D (www2.sas.com/proceedings/sugi29/124-29.pdf) suggests creating a macro variable with the physical path of the child process and using this to assign a libref in the parent session. This would allow me to access the data in the work directories of the child processes before the signoff is executed and the session output lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the thing that's confusing me at the moment are the following few lines in my autoexec as it means any session I start isn't 'clean';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1 %let mserv=coserv66 7551;&lt;/P&gt;&lt;P&gt;2 %let servname=coserv66;&lt;/P&gt;&lt;P&gt;3 options remote=mserv;&lt;/P&gt;&lt;P&gt;4 signon mserv user=****** password="******"; &lt;/P&gt;&lt;P&gt;5 rsubmit;&lt;/P&gt;&lt;P&gt;6 options no$syntaxcheck;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;As I've never delved too deeply into this, I have always believed that if I ran the following;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;that it would submit the code to the server named mserv rather than a task named mserv running on the server it was assigned to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As SASKiwi pointed out in his reply, I had to assign a server to the tasks before I could tell them to signon. (this is something I've not had to do before as it was handled in the autoexec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also had to specify a user and password when using the signon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware of any papers which introduce the concepts of rsubmit, signon or task handling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the results I've found on Google or SAS.com are a little too technical and I think I need to start with the basics first.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance you can give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Fat Captain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 21:14:18 GMT</pubDate>
    <dc:creator>FatCaptain</dc:creator>
    <dc:date>2011-06-23T21:14:18Z</dc:date>
    <item>
      <title>SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18007#M2657</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm looking at introducing parallel processing into several of the programs I run in order to reduce their run time.&lt;BR /&gt;
&lt;BR /&gt;
I've used the example code from the SAS/CONNECT Parallel Processing to use as a template and have cut it back to it's most basic form;&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
options sascmd="sas";&lt;BR /&gt;
&lt;BR /&gt;
signon task1;&lt;BR /&gt;
&lt;BR /&gt;
rsubmit task1 wait=no ;&lt;BR /&gt;
data cust2 ;&lt;BR /&gt;
set  cust (obs=10000) ;&lt;BR /&gt;
run ;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
signon task2;&lt;BR /&gt;
&lt;BR /&gt;
rsubmit task2 wait=no ;&lt;BR /&gt;
data accs2 ;&lt;BR /&gt;
set  accs (obs=10000) ;&lt;BR /&gt;
run ;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
waitfor _all_ task1 task2 ;&lt;BR /&gt;
&lt;BR /&gt;
signoff task1;&lt;BR /&gt;
signoff task2;&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When run, the code writes the following series of errors to the log;&lt;BR /&gt;
[log]&lt;BR /&gt;
204  options sascmd="sas";&lt;BR /&gt;
205&lt;BR /&gt;
206  signon task1;&lt;BR /&gt;
NOTE: Remote signon to TASK1 commencing (SAS Release 9.01.01M3P020206).&lt;BR /&gt;
ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;
ERROR: Cannot locate TCP host 'TASK1'.&lt;BR /&gt;
ERROR: Remote signon to TASK1 cancelled.&lt;BR /&gt;
207&lt;BR /&gt;
208  rsubmit task1 wait=no ;&lt;BR /&gt;
NOTE: Remote signon to TASK1 commencing (SAS Release 9.01.01M3P020206).&lt;BR /&gt;
ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;
ERROR: Cannot locate TCP host 'TASK1'.&lt;BR /&gt;
ERROR: Remote submit to TASK1 cancelled.&lt;BR /&gt;
209&lt;BR /&gt;
210  signon task2;&lt;BR /&gt;
NOTE: Remote signon to TASK2 commencing (SAS Release 9.01.01M3P020206).&lt;BR /&gt;
ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;
ERROR: Cannot locate TCP host 'TASK2'.&lt;BR /&gt;
ERROR: Remote signon to TASK2 cancelled.&lt;BR /&gt;
211&lt;BR /&gt;
212  rsubmit task2 wait=no ;&lt;BR /&gt;
NOTE: Remote signon to TASK2 commencing (SAS Release 9.01.01M3P020206).&lt;BR /&gt;
ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;
ERROR: Cannot locate TCP host 'TASK2'.&lt;BR /&gt;
ERROR: Remote submit to TASK2 cancelled.&lt;BR /&gt;
NOTE: The task "task1" is not an active task.&lt;BR /&gt;
NOTE: The task "task2" is not an active task.&lt;BR /&gt;
213&lt;BR /&gt;
214  waitfor _all_ task1 task2 ;&lt;BR /&gt;
215&lt;BR /&gt;
216  signoff task1;&lt;BR /&gt;
NOTE: A link to TASK1 does not exist.  SIGNOFF is not necessary.&lt;BR /&gt;
217  signoff task2;&lt;BR /&gt;
NOTE: A link to TASK2 does not exist.  SIGNOFF is not necessary.&lt;BR /&gt;
[/log]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could someone point me in the direction of what I am doing wrong? Could it be something to do with a setting in the sas autoexec or config file?&lt;BR /&gt;
&lt;BR /&gt;
Any help would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Tue, 21 Jun 2011 13:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18007#M2657</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2011-06-21T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18008#M2658</link>
      <description>You need to define what SAS server TASK1 and TASK2 should signon to.&lt;BR /&gt;
&lt;BR /&gt;
You can assign a URL via a macro variable like so:&lt;BR /&gt;
&lt;BR /&gt;
%let task1 = mysasserver.com;&lt;BR /&gt;
&lt;BR /&gt;
or you can use an IP address like:&lt;BR /&gt;
&lt;BR /&gt;
%let task1 = 99.99.99.99;&lt;BR /&gt;
&lt;BR /&gt;
Test just signing on for starters. If that is not working nothing else will.</description>
      <pubDate>Tue, 21 Jun 2011 22:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18008#M2658</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-06-21T22:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18009#M2659</link>
      <description>Thanks for this SASKiwi.&lt;BR /&gt;
&lt;BR /&gt;
I managed to get the tasks to log on, run asynchronously and log off.&lt;BR /&gt;
&lt;BR /&gt;
I don't know where the output data sets were written to but I think I'll be able to work the rest out by looking at how the signon process refers to our server in the autoexec.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your help.</description>
      <pubDate>Wed, 22 Jun 2011 13:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18009#M2659</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2011-06-22T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18010#M2660</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Code in rsubmit blocks runs in its own SAS environment.&lt;BR /&gt;
&lt;BR /&gt;
The output data set in your code (rsubmit block) were written to the work area of the child processes - and the work area of these child processes has been removed after the rsubmit blocks ended. &lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick

Message was edited by: Patrick</description>
      <pubDate>Thu, 23 Jun 2011 01:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18010#M2660</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-06-23T01:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18011#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming this Patrick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspected that this might be the case as the SUGI Paper 124-29, page 3 section D (www2.sas.com/proceedings/sugi29/124-29.pdf) suggests creating a macro variable with the physical path of the child process and using this to assign a libref in the parent session. This would allow me to access the data in the work directories of the child processes before the signoff is executed and the session output lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the thing that's confusing me at the moment are the following few lines in my autoexec as it means any session I start isn't 'clean';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1 %let mserv=coserv66 7551;&lt;/P&gt;&lt;P&gt;2 %let servname=coserv66;&lt;/P&gt;&lt;P&gt;3 options remote=mserv;&lt;/P&gt;&lt;P&gt;4 signon mserv user=****** password="******"; &lt;/P&gt;&lt;P&gt;5 rsubmit;&lt;/P&gt;&lt;P&gt;6 options no$syntaxcheck;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;As I've never delved too deeply into this, I have always believed that if I ran the following;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;that it would submit the code to the server named mserv rather than a task named mserv running on the server it was assigned to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As SASKiwi pointed out in his reply, I had to assign a server to the tasks before I could tell them to signon. (this is something I've not had to do before as it was handled in the autoexec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also had to specify a user and password when using the signon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware of any papers which introduce the concepts of rsubmit, signon or task handling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the results I've found on Google or SAS.com are a little too technical and I think I need to start with the basics first.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance you can give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Fat Captain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 21:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18011#M2661</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2011-06-23T21:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18012#M2662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;signon task1 sascmd="sas";&amp;nbsp; *will fix your problem if this is PC SAS; *Remove the global options statement with sascmd="sas";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 15:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18012#M2662</guid>
      <dc:creator>adc0016</dc:creator>
      <dc:date>2014-04-09T15:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/CONNECT Parallel Processing Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18013#M2663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is an option for signon or rsubmit statements&amp;nbsp;&amp;nbsp;&amp;nbsp; INHERITLIB &lt;/P&gt;&lt;P&gt;It would make writing direct to a client library straightforward from the server sessions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 20:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-CONNECT-Parallel-Processing-Error/m-p/18013#M2663</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-04-09T20:43:32Z</dc:date>
    </item>
  </channel>
</rss>

