<?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 Problem using MP CONNECT piping facility in UNIX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67155#M14520</link>
    <description>I’m trying to use the MP CONNECT piping facillity that uses ports rather than disk devices por I/O.  I have this code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
rsubmit wait=no;&lt;BR /&gt;
&lt;BR /&gt;
libname outLib sasesock ":pipe1"; &lt;BR /&gt;
&lt;BR /&gt;
/* create data set - and write to pipe */&lt;BR /&gt;
data outLib.Intermediate;&lt;BR /&gt;
   do i=1 to 5;&lt;BR /&gt;
       put 'Writing row ' i;            &lt;BR /&gt;
       output;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
/* -----------  DATA Step - Process P2  ----- */&lt;BR /&gt;
rsubmit wait=no;&lt;BR /&gt;
&lt;BR /&gt;
libname inLib sasesock ":pipe1";&lt;BR /&gt;
libname outLib "/tmp/"; &lt;BR /&gt;
&lt;BR /&gt;
data outLib.Final;&lt;BR /&gt;
set inLib.Intermediate; &lt;BR /&gt;
   do j=1 to 5;&lt;BR /&gt;
        put 'Adding data ' j;	         &lt;BR /&gt;
        n2 = j*2; &lt;BR /&gt;
        output;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
when I execute the first rsubmit I find the following error:&lt;BR /&gt;
828   libname outLib sasesock ":pipe1";&lt;BR /&gt;
ERROR: Unknown service name, pipe1, please check your TCP/IP services file&lt;BR /&gt;
ERROR: Error in the LIBNAME statement.&lt;BR /&gt;
&lt;BR /&gt;
I suppose that pipe1 is the name of a service that must be running in some port in the UNIX server, isn’t it??.&lt;BR /&gt;
I don’t know how to start this service and what I have to do in UNIX to run this SAS program. In wich port??, what kind of service??&lt;BR /&gt;
&lt;BR /&gt;
Any advice will be greatly appreciated, I’m a beginner using this pipe facility.</description>
    <pubDate>Tue, 23 Dec 2008 11:27:17 GMT</pubDate>
    <dc:creator>jvidalg</dc:creator>
    <dc:date>2008-12-23T11:27:17Z</dc:date>
    <item>
      <title>Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67155#M14520</link>
      <description>I’m trying to use the MP CONNECT piping facillity that uses ports rather than disk devices por I/O.  I have this code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
rsubmit wait=no;&lt;BR /&gt;
&lt;BR /&gt;
libname outLib sasesock ":pipe1"; &lt;BR /&gt;
&lt;BR /&gt;
/* create data set - and write to pipe */&lt;BR /&gt;
data outLib.Intermediate;&lt;BR /&gt;
   do i=1 to 5;&lt;BR /&gt;
       put 'Writing row ' i;            &lt;BR /&gt;
       output;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
/* -----------  DATA Step - Process P2  ----- */&lt;BR /&gt;
rsubmit wait=no;&lt;BR /&gt;
&lt;BR /&gt;
libname inLib sasesock ":pipe1";&lt;BR /&gt;
libname outLib "/tmp/"; &lt;BR /&gt;
&lt;BR /&gt;
data outLib.Final;&lt;BR /&gt;
set inLib.Intermediate; &lt;BR /&gt;
   do j=1 to 5;&lt;BR /&gt;
        put 'Adding data ' j;	         &lt;BR /&gt;
        n2 = j*2; &lt;BR /&gt;
        output;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
&lt;BR /&gt;
when I execute the first rsubmit I find the following error:&lt;BR /&gt;
828   libname outLib sasesock ":pipe1";&lt;BR /&gt;
ERROR: Unknown service name, pipe1, please check your TCP/IP services file&lt;BR /&gt;
ERROR: Error in the LIBNAME statement.&lt;BR /&gt;
&lt;BR /&gt;
I suppose that pipe1 is the name of a service that must be running in some port in the UNIX server, isn’t it??.&lt;BR /&gt;
I don’t know how to start this service and what I have to do in UNIX to run this SAS program. In wich port??, what kind of service??&lt;BR /&gt;
&lt;BR /&gt;
Any advice will be greatly appreciated, I’m a beginner using this pipe facility.</description>
      <pubDate>Tue, 23 Dec 2008 11:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67155#M14520</guid>
      <dc:creator>jvidalg</dc:creator>
      <dc:date>2008-12-23T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67156#M14521</link>
      <description>you got to register a port # as pipe1 in /etc/services&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/camref/59596/HTML/default/configserv.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/camref/59596/HTML/default/configserv.htm&lt;/A&gt;</description>
      <pubDate>Wed, 24 Dec 2008 22:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67156#M14521</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-24T22:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67157#M14522</link>
      <description>Thank you for your help. I will register in the services file as you say, but I have another doubt, pipe1 is a services defined in one port, then I suppose pipe1 is a server appliction listening in this port, waht kind of app is pipe1??.&lt;BR /&gt;
I don't know much about ports and services in UNIX, but I know that, for example, "telnet" is ans app server listening in one port for clients requests, what kind of server app is "pipe1"??, do I need some instalation??, does it works like the UNIX pipe command ( cat file | grep "character" | sort ...).&lt;BR /&gt;
&lt;BR /&gt;
Any advice will be greatly appreciatted, because I know SAS, but not much UNIX...</description>
      <pubDate>Thu, 25 Dec 2008 20:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67157#M14522</guid>
      <dc:creator>jvidalg</dc:creator>
      <dc:date>2008-12-25T20:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67158#M14523</link>
      <description>Of course you got to start the Unix version of SAS spawner.&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts676.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts676.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/023-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/023-30.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 26 Dec 2008 16:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67158#M14523</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-26T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67159#M14524</link>
      <description>Thank you for your help, urchin.&lt;BR /&gt;
&lt;BR /&gt;
I have problemas identifying the SAS spawner.&lt;BR /&gt;
That's what I have in the sasroot/utilities/bin directory&lt;BR /&gt;
&amp;gt;ls&lt;BR /&gt;
bdm  cfgpeh  cleanwork  elsconf  elssrv&lt;BR /&gt;
jproxy  ke2j  ke2s  kj2e  ks2e&lt;BR /&gt;
motifxsassm  objspawn  patchname rbrowser reshelper&lt;BR /&gt;
sasauth sasmailer sasm.elm.mime   sasperm   sastcpd&lt;BR /&gt;
sasumgmt  saswujms   setuid&lt;BR /&gt;
&lt;BR /&gt;
How can I identify the spawner??&lt;BR /&gt;
&lt;BR /&gt;
Another question, I suppose that this program must be definded in the etc/services UNIX file, also  is correct???&lt;BR /&gt;
&lt;BR /&gt;
And the program must be running in UNIX. It cab be located with this:&lt;BR /&gt;
&lt;BR /&gt;
ps -ef | grep "spawner-name"&lt;BR /&gt;
&lt;BR /&gt;
As you can see, I'm not an expert....&lt;BR /&gt;
&lt;BR /&gt;
Any advice will be greatly apreciatted, I don't know much about UNIX services and how it works...</description>
      <pubDate>Fri, 02 Jan 2009 10:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67159#M14524</guid>
      <dc:creator>jvidalg</dc:creator>
      <dc:date>2009-01-02T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67160#M14525</link>
      <description>(1) sastcpd is the Unix spawner program.&lt;BR /&gt;
(2) you don't have to register a service entry in /etc/service.&lt;BR /&gt;
&lt;BR /&gt;
I can give you an easy example.&lt;BR /&gt;
Open two terminals in Unix, and&lt;BR /&gt;
(1) type &lt;U&gt;/usr/local/SAS_9.1.3/SAS_9.1/utilities/bin/sastcpd -service 5050 -sascmd '/usr/local/SAS_9.1.3/SAS_9.1/sas -dmr -noterminal -nosyntaxcheck -device grlink'&lt;/U&gt; in terminal 1. The actual paths could be different in your system.&lt;BR /&gt;
(2) In terminal 2, use any editor to enter the following code and save as test.sas&lt;BR /&gt;
/*&lt;BR /&gt;
%let node = 127.0.0.1 5050;&lt;BR /&gt;
options comamid=tcp;&lt;BR /&gt;
&lt;BR /&gt;
filename rlink '/usr/local/SAS_9.1.3/SAS_9.1/misc/connect/tcpunix.scr';&lt;BR /&gt;
*actual path to tcpunix.scr may vary;&lt;BR /&gt;
signon remote=node user=$youruserid$ password=_prompt_;&lt;BR /&gt;
*replace $youruserid$ with your actual userid; &lt;BR /&gt;
rsubmit node;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
endrsubmit;&lt;BR /&gt;
signoff node;&lt;BR /&gt;
*/&lt;BR /&gt;
After the above code is saved, type command &lt;U&gt;sas -nodms test&lt;/U&gt; and after a few seconds you should be prompted for the password. If successful, there should be a test.lst file created.&lt;BR /&gt;
&lt;BR /&gt;
Because I'm not the root user of our Unix server, I cannot really test any fancy setups and cannot help you any further. Two more references,&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/camref/59596/HTML/default/a000173245.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/camref/59596/HTML/default/a000173245.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/secref/59964/HTML/default/a003047680.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/secref/59964/HTML/default/a003047680.htm&lt;/A&gt;</description>
      <pubDate>Fri, 02 Jan 2009 23:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67160#M14525</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-02T23:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67161#M14526</link>
      <description>Thank you very much for your help urchin. It's  being very productive.&lt;BR /&gt;
&lt;BR /&gt;
I 'll talk with the UNIX admin, because I don't have root permission to start sastcpd service.&lt;BR /&gt;
If you have time I have another question, I don't understand know how MP connect pipeline works.&lt;BR /&gt;
In the libname you specifie a reference to a TCP/IP pipe instead of to a physical disk device, then the intermediate data is not write in a disk device??, is correct??.&lt;BR /&gt;
I understand that you save time in I/O, but where is the intermediate data??, in memory?, in RAM???&lt;BR /&gt;
&lt;BR /&gt;
I would like to undestand the phisical running of MP connect pipeline.&lt;BR /&gt;
&lt;BR /&gt;
Thank in advance,</description>
      <pubDate>Sun, 04 Jan 2009 20:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67161#M14526</guid>
      <dc:creator>jvidalg</dc:creator>
      <dc:date>2009-01-04T20:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MP CONNECT piping facility in UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67162#M14527</link>
      <description>I guess SASESOCK is just some sort of cache with limited size. I don't know where it is because it's not mentioned anywhere in the SAS/Connect reference.&lt;BR /&gt;
Just search 'SASESOCK at support.sas.com, and you'll find only a limited number of references so you should be able to read them all.</description>
      <pubDate>Tue, 06 Jan 2009 21:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-MP-CONNECT-piping-facility-in-UNIX/m-p/67162#M14527</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-06T21:43:40Z</dc:date>
    </item>
  </channel>
</rss>

