*article and comment trail imported from previous forum platform.

Submitted by Steve | 11/4/2009 5:07pm

Any s$ subroutines or anything else that I can use to ftp a file within a COBOL program.



Comment by Noah Davids | 11/4/2009 5:17pm

There is no API for the FTP protocol that is available in any language.

Comment by Steve | 11/4/2009 5:26pm

anyway I can put the ftp command in the start_process command_line and then issue a start_process

Comment by Noah Davids | 11/4/2009 6:00pm

You can. You can use the .netrc file to handle the login so that the password is not placed in the command macro. Take a look at VOS Streams TCP/IP User's Guide (R421) if you are not familar with the .netrc file.

You might also consider sftp or scp and public key authentication so that passwords never have to be placed in any file.

Comment by bornlibra23 | 11/12/2009 8:29am

Hello Paul
I understand that there is no VOS provided API for the same. However is there some open source package available which can provide this functionality. I saw a jFTP package which is obviously for Java. Perhaps I can help by porting it over. I couldnt get CURL ported over with its unicode requirements & all.
@Steve : If you can port CURL over, it should help. However note that the parser will have to be edited if you are targeting a VOS server.
Thanks
Ashutosh Warikoo