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 (March 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 26 Mar 2004 12:16:20 -0500
Reply-To:     Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject:      Re: Sending SAS output to the web using FTP

Oops. Place the PUT statement after the FILE statement.

On Fri, 26 Mar 2004 12:14:02 -0500, Howard Schreier <Howard_Schreier@ITA.DOC.GOV> wrote:

>Actually, your code is failing to do three things (point to the input, read >the input, copy the input to the output), and none of this has anything to >do with the fact that the output is going to a web server via FTP. That's >incidental. > >Try > > data _null_; > infile 'S:\SAS Output\Graphs\index.htm'; > input; > put _infile_; > file send; > run; > >You may also need the LRECL= option on the INFILE statement if any lines >are longer than 256 characters. > >On Fri, 26 Mar 2004 08:14:00 -0800, A Baer <atar.baer@METROKC.GOV> wrote: > >>I would like to upload a file to the internet. The file is called >>'index.htm' and is located in the directory >>'S:\SAS Output\Graphs' >> >>How do I modify the code below so that SAS knows where the index.html >>file is located on the S drive (i.e., where to read the file from)? >> >> >>/** SEND OUTPUT TO WEB SERVER **/ >>filename send ftp 'index.html' >> cd='/www/health' /* This is where I am writing the file >TO */ >> host='webupload.metrokc' >> user='baer' >> pass='password' >> rcmd='site unmask 022' >> recfm=s >> debug; >> >>data _null_; >>file send; >>run; >> >> >>The code above creates a BLANK index.html file in the /www/health >>directory.

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