ftp client - Java FTPClient for Mainframe GDG -


i'm trying transfer file mainframe using java ftpclient.below code works normal datasets in mainframe. when try transfer file mainframe gdg (generation data groups) 'ftpaa.test.bbbb.dly(+1)'. not working. there specific settings need in ftpclient transfer file gdg or missing configurations?

import org.apache.commons.net.ftp.ftp; import org.apache.commons.net.ftp.ftpclient; import org.apache.commons.net.ftp.ftpconnectionclosedexception;  ...... file file = new file("abc.csv"); string testname = "ftpaa.test"; fis = new fileinputstream(file);  // upload file ftp server try{ result = ftpclient.storefile(testname, fis); } 


Comments