I currently have a process in my vb program that ftp's a text file to a mainframe data set. I do this by executing a .cmd file from the vb program and returning a return value. The .cmd file is as follows:
ftp -d -s:\\server\folder\ftptext.txt 10.9.1.2
where ftp is the ftp program that is executed and ftptext.txt is the file that contains the actual files to be ftp'd. This file is as follows:
put \\server\folder\testfile.txt 'mainframe.data.set.name'
This ftp works, but the problem is if it doesn't work for some reason it still ends up with a return code of zero. My program assumes that if the return code is zero then the ftp worked.
Is there an ftp control that I can use to send the text file to the mainframe without having to execute a command file to run an ftp program?
ftp -d -s:\\server\folder\ftptext.txt 10.9.1.2
where ftp is the ftp program that is executed and ftptext.txt is the file that contains the actual files to be ftp'd. This file is as follows:
put \\server\folder\testfile.txt 'mainframe.data.set.name'
This ftp works, but the problem is if it doesn't work for some reason it still ends up with a return code of zero. My program assumes that if the return code is zero then the ftp worked.
Is there an ftp control that I can use to send the text file to the mainframe without having to execute a command file to run an ftp program?