Page 1 of 1

Trying to ftp more than one file using FTP Stage

Posted: Wed Mar 23, 2005 3:29 pm
by userds
I am trying to FTP more than one file using FTP Stage.

It gives the following error:
-------------------------------
FTPJOb..FTP_Plug_in_2: 550 anma022r*.txt: The filename, directory name, or volume label syntax is incorrect.
FTPJOb..FTP_Plug_in_2: Error while trying to open connection for receiving data from the FTP server, FTP command RETR failed

I have specified the filename as anma022r*.txt, which i believe a valid representation.

I would like to know why FTP Stage is erroring out.

Any help will be appreciated.

TIA.

Posted: Wed Mar 23, 2005 3:36 pm
by chulett
The FTP stage doesn't support wildcards or sending more than one file at a time. Go back to good 'ol command line ftp if you really need to do that.

Posted: Wed Mar 23, 2005 9:45 pm
by ray.wurlod
Or run a pre-FTP command such as

Code: Select all

cat anma022r*.txt > anma002r.all 
and use that file as the one to stream into your job.

Posted: Thu Mar 24, 2005 8:02 am
by chulett
Assuming it's ok for the output to be one big file on the other end. :wink:

Posted: Thu Mar 24, 2005 8:45 am
by roy
Hi,
well as I remember command line ftp is also faster.
so I would go with command line ftp with mget <file pattern>.

if you don't want any ftp scripts hanging around you can allways build them on the fly and delete them when your done.

IHTH,

Re: Trying to ftp more than one file using FTP Stage

Posted: Thu Mar 24, 2005 9:06 am
by sachinkc
DS should be used to make things easy and streamlined that you cannot otherwise. If using DS will make it more complex, try not to use it, unless your boss insists.

I would go for OS level ftp, as its reliable, efficient and easy to use and change. I've not used FTPStage myself though, so I'm sorry I'll not be able to answer your direct question.

Just my humble 2 cents
- Sachin
userds wrote:I am trying to FTP more than one file using FTP Stage.

It gives the following error:
-------------------------------
FTPJOb..FTP_Plug_in_2: 550 anma022r*.txt: The filename, directory name, or volume label syntax is incorrect.
FTPJOb..FTP_Plug_in_2: Error while trying to open connection for receiving data from the FTP server, FTP command RETR failed

I have specified the filename as anma022r*.txt, which i believe a valid representation.

I would like to know why FTP Stage is erroring out.

Any help will be appreciated.

TIA.