Date: Fri, 21 Mar 1997 15:21:35 -0000
Reply-To: Richard Paterson <rpaterso@QEDI.QUINTILES.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Richard Paterson <rpaterso@QEDI.QUINTILES.COM>
Subject: FILENAME - SOCKET access method
Content-type: text/plain; charset=US-ASCII
Hi folks,
I am trying to get two basic SAS applications to communicate with each
other over a TCP/IP socket. I am running SAS 6.11 TS20 Windows 3.1 on a
Novell network Netware 4.1.I have a *very* limited knowledge of networks.
I have some code from the Changes and Enhancements 6.11 which should get
two applications talking :
/* code for the server application */
filename local socket ':5000' server reconn=3;
data tcpip;
infile local eov=v;
input x $10;
if v=1 then
do;
put "new connection recieved";
end;
/* code for the client application */
filename remote socket 'hp720.unx.sas.com:5000';
data _null_;
file remote;
do i=1 to 10;
put i;
end;
run;
The code for the server seems to work correctly (in that the server
application is looking for clients wanting to connect) When it comes to
the client code I am not sure exactly what value should the
*hostname:port* should take. I tried inserting my IP address i.e.
'192.168.20.2:5000' but with no success. The client crashes with no
meaningful errors.
I realise I may need to be more specific but my limited knowledge in
networks is a hindrance. Any help in getting two apps communicating, even
very simply (as above) would be most appreciated.
Many thanks for your time.
Richard Paterson