LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 1 Feb 2002 15:24:08 +0000
Reply-To:   Francesco <francesco@NOSPAMONETEL.NET.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Francesco <francesco@NOSPAMONETEL.NET.UK>
Subject:   Little Off Topic..... FTP Return Codes in Batch
Content-Type:   text/plain; charset=us-ascii; format=flowed

Hi all, as the subject says... maybe off topic, but I'm sure some of you experts know the answer to this....

We want to tranfer some SAS datasets from one NT server to anohter using FTP. I know we should use proc copy or proc datasets with the copy option, but for reasons outside the scope of this posting we decided to also evaluate the FTP way.

We have a .bat file with the following ftp command

ftp -s:ftp_commands.txt 123.456.789.012

where 123.456.789.012 is the server IP address. ftp_commands.txt contains commands to login, put files and disconnect when finished, something like

user password binary cd dest_dir lcd origin_dir put test_file.sas7bdat close quit

Now... is there an environment variable or something similar that I can check to see if the ftp put was successful? Has anyone done this before?

Thanks in Advande for your help.

Francesco Marelli Nemesi Ltd. UK


Back to: Top of message | Previous page | Main SAS-L page