Date: Tue, 9 Dec 2003 15:43:55 -0500
Reply-To: "Farrer, Andrew C" <Andrew.Farrer@CIBC.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Farrer, Andrew C" <Andrew.Farrer@CIBC.COM>
Subject: Re: SAS program as Telnet Client (newbie)
Content-Type: text/plain; charset="iso-8859-1"
I would love to test this but I cannot get a telnet prompt over the company
VPN. Tomorrow maybe.
However, because you have SAS/Connect on your workstation, you could try
hacking C:\Program Files\SAS Institute\SAS\V8\connect\saslink\tcpunix.scr .
Although I doubt the script was designed for this, it handles the telnet
login and other interactions with Unix command line quite well. It could be
adapted to run your few Unix commands or a script i.e. at line 101 replace
type 'sas -dmr -comamid tcp -device grlink -noterminal -no\$syntaxcheck'
LF;
with
type 'myfewcommands.ksh' LF;
stop ;
Run it with signon ; and you might even get the results echoed back to your
SAS log. Unfortunately, you will probably get a SAS/Connect error as well.
-----Original Message-----
From: Carl Kyonka [mailto:Carl.Kyonka@ENBRIDGE.COM]
Sent: Tuesday, December 09, 2003 10:12 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: SAS program as Telnet Client (newbie)
Hi,
I want to run a few UNIX commands under control of a SAS program and FTP
the result to my Windows system. The UNIX systems do not have SAS
installed.
I have SAS/Windows with SAS/Connect, but not SAS/Share.
I have looked in on-line Doc, but most of it seems aimed at SAS to SAS
communication.
Could someone point me at the right doc?
Thanks,
Carl Kyonka
|