I have never tried this, but could the FTP program be run with
STDIN and STDLIST redirected to MSG files that are controlled by
the COBOL program (spoon-feeding the ftp commands as needed and
reading the FTP client's responses on the other MSG file)?