Data set disposition incorrect when transfer fails

If the data set disposition is incorrect when transfer fails, check for the following problems:
  • Data sets cataloged instead of deleted
    • Issue the STAT command and check the setting of the conditional disposition. If the STAT command output indicates New data sets will be catalogued if a store operation ends abnormally, the server catalogs new data sets, even if the data transfer fails. To change this setting, issue the SITE CONDDISP=DELETE command.
    • Did the transfer fail because the FTP server was either abending or being terminated by a STOP or CANCEL command? If this is the case, the data set is kept.
    • Is the client sending checkpoint information? If the data is being transferred in EBCDIC, either in block mode or compressed mode and the client has sent at least one checkpoint marker, the FTP server keeps the data set even if the conditional disposition is set to delete.
  • Data sets deleted instead of cataloged
    • Issue the STAT command and check the setting of the conditional disposition. If the STAT command output indicates New data sets will be deleted if a store operation ends abnormally, the server deletes new data sets if the data transfer fails. To change this setting, issue the SITE CONDDISP=CATALOG command.