Date: Fri, 12 Jul 2002 13:49:50 -0400
Reply-To: Howard_Schreier@ITA.DOC.GOV
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard_Schreier@ITA.DOC.GOV
Subject: Re: FTP a SAS dataset from PC to UNIX (SAS Verssion 8.2)
"Not working" is too vague. It would help greatly to be able to see the
messages in the log.
As to the choice of engine: it's not so much that it has to be XPORT, but I
believe it does have to be one which operates via sequential access, and I
don't believe there are any other choices for the PC platform which meet
that requirement. Also, since a LIBNAME is being paired with a FILENAME, it
seems to me that it must be an engine which stores a library as a single
file, rather than as a directory or other such aggregate structure.
When you FTP a file from the command line or using a GUI FTP utility, you
move a file from/to the local file system to/from the remote file system.
The FTP Access Method in SAS is different. There is no local file, not even
in a temporary cache. Rather, some SAS process (PROC step, DATA step, PROC
PRINTTO capture, %include, ...) is in the loop, either feeding the remote
server or being fed by it.
On Thu, 11 Jul 2002 14:20:52 -0400, Action Man <wollo_desse@HOTMAIL.COM>
wrote:
>Hello SAS users:
>
>I am trying to transfer my SAS dataset from my PC work directory to UNIX
>system under '/Global/USA' The Name of the SAS dataset should be "FTPDATA".
>This file was produced on the prevouse part of the program, so assume
>"FTPDATA" is present on work directory of my PC.
>
>This program is not working, can you tell me where I am making error?
>
>According to the paper I read from Howard Schreier on FTP subject, I have
to
>use "xport" do I need to use export in sas version 8.2 as well?
>
>Filename To_UNIX ftp
>user='My_Name' prompt
>host='my_UNIX Server.COM'
>cd='/Global/USA'
>debug;
>
>libname To_UNIX xport;
> proc datasets;
> copy out=To_UNIX;
> select FTPDATA;
> quit;
>
>Thanks;
>Wollo
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
|