|
|
create a file using filename FTP method
Hello:
I tried to create a file (test.dat) using FTP method and can not figure out
what's wrong with the code, please help.
14 filename x ftp 'test.dat' cd='/omf/he/sas'
15 host='10.12.81.251'
16 user='dhh\bjiang02' pass=XXXXXXXXXXXXXXXXXXXXXX recfm=v;
17 data _null_;
18 file x;
19 do i=1 to 10;
20 put i=;
21 end;
22
23 run;
NOTE: 220 Microsoft FTP Service
ERROR: Physical file does not exist, test.dat.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
thanks,
baogong
|
|
0
|
|
|
|
Reply
|
bgjiang
|
1/7/2010 7:27:20 PM |
|
1) Make sure you have write access to the directory by using some
other FTP tool to create a file there.
2) Getting rid of the CD=3D option and including the path in the quoted
filename.
3) Your error message mentions Windows perhaps you need to use \
instead of / in your path.
On Jan 7, 2:27=A0pm, bgji...@GMAIL.COM (baogong jiang) wrote:
> Hello:
>
> I tried to create a file (test.dat) =A0using FTP method and can not figur=
e out
> what's wrong with the code, please help.
>
> =A014 =A0 =A0 =A0 =A0 filename x ftp =A0 'test.dat' cd=3D'/omf/he/sas'
> 15 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0host=3D'10.12.81.251'
> 16 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0user=3D'dhh\bjiang02' pass=3DXXXXXX=
XXXXXXXXXXXXXXXX recfm=3Dv;
> 17 =A0 =A0 =A0 =A0 data _null_;
> 18 =A0 =A0 =A0 =A0 file x;
> 19 =A0 =A0 =A0 =A0 =A0do i=3D1 to 10;
> 20 =A0 =A0 =A0 =A0 =A0 =A0 =A0 put i=3D;
> 21 =A0 =A0 =A0 =A0 =A0 =A0end;
> 22
> 23 =A0 =A0 =A0 =A0 run;
>
> NOTE: 220 Microsoft FTP Service
> ERROR: Physical file does not exist, test.dat.
> NOTE: The SAS System stopped processing this step because of errors.
> NOTE: DATA statement used (Total process time):
> =A0 =A0 =A0 real time =A0 =A0 =A0 =A0 =A0 0.00 seconds
> =A0 =A0 =A0 cpu time =A0 =A0 =A0 =A0 =A0 =A00.01 seconds
>
> thanks,
> baogong
|
|
0
|
|
|
|
Reply
|
Tom
|
1/7/2010 9:09:04 PM
|
|
|
1 Replies
202 Views
(page loaded in 0.112 seconds)
Similiar Articles: create pdf programmatically in vb - comp.text.pdfHow can I suppress this and set the filename in my vb application? I am looking ... using several sdk's, but not the most simple thing like creating a pdf file. One method ... HDF5 low-level write: extend and append array - comp.soft-sys ...... Create a new file using the default properties. % fileID = H5F.create(filename, 'H5F_ACC ... to pt 4 in the README file at the link below: http://www.hdfgroup.org/ftp ... Custom Properties linking to filename. - comp.cad.solidworks ...I'm open to a good how-to or sample part file. Also, could this method work for ... SW03 when you tried to do this, it would tag on the file extension with the filename. ln-s does not work.. why? (using cygwin in Windows XP) - comp.unix ...But, when I create some new symlinks using the above method... for example ... cstest_c and it is a "system file"... and ... ne= ed > to enable the display of filename ... create .avi files from different video and audio streams - comp ...The relevant line from the step method help page is ... ROI) %% Stream Processing Loop % Create a ... %% % Create a System object to read video from avi file. filename ... Help to 'pretty'; replace WITHIN file without TEMP file?? - comp ...However, many of us aspire to better methods (which proponents of the opposite ... rather than variable assignments, and change >the value of N for every file, so FILENAME ... how to disassembly a .jar file? how to see what are the classes ...... the classes inside the .jar file; what are the methods ... jar Extract a named file: jar -x filename.jar ... read the ... is to deploy using web start ... jar file to make ... Formatting a cell in Excel file using xlswrite - comp.soft-sys ...... via active x methods and ... Using xlswrite command to create new blank file - comp.soft-sys ... ... in xlswrite filename - comp ... Formatting a cell in Excel file using ... Obtaining the Filename and Full Path of Submitted Programs - comp ...- Stack ..... method to obtain the full path of the directory from where a program ... write a small program. ... in a pkcs#7 file, use "keytool-importcert -file filename ... Start file download using onclick... - comp.lang.javascript ...how to transfer mp3 files using sockets - comp.lang.java.help ... latest file download using ftp - comp.unix.solaris how to transfer mp3 files ... create a file using filename FTP method - sas - Mofeel Groupssas, create a file using filename FTP method . comp.soft-sys.sas - The SAS statistics package. Statements : FILENAME, FTP Access Method - ראשי ...specifies the access method that enables you to use file transfer protocol (FTP) to read or write to a file from any ... filename create ftp 'c:\remote\test.dat ... 7/23/2012 10:13:43 PM
|
|
|
|
|
|
|
|
|