WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WinInet
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

iFtpCmd and Quote Site


Question:

I am having problems issuing the quote site command during an ftp to a mainframe. Here is how I am doing this:
AddExtender("WWINT34i.DLL")
TopHandle=iBegin(0,"","")
ConHandle=iHostConnect(TopHandle,target,@FTP, User_Id,user_Passwd)
ftpHandle=iFtpCmd(conhandle,"quote site","recfm=FB",@ASCII)
I then get the error: "Error: 335: FTP command not understood"

I have also tried this like the following:

ftpHandle=iFtpCmd(conhandle,"quote","site recfm=FB",@ASCII)
From what I have read, this should work. What do I need to do?

Answer:

Remove 'Quote' from the ftp command.

Try this:


ftpHandle=iFtpCmd(conhandle,"SITE","recfm=FB",@ASCII)



Article ID:   W16373
File Created: 2017:07:28:13:58:46
Last Updated: 2005:02:18:12:20:06