Getting an FTP error (22049) from WinSpool/400 Report Download when downloading a report.
The log showed:
Exception encountered for FTP exit program GSCCAS@R in library SMZ8SYS for exit point .
Remove the QIBM_QTMF_SERVER_REQ exit point program:
Use the WRKREGINF command to find exit point QIBM_QTMF_SERVER_REQ.
Select option 8 on it.
Remove the exit point program.
Use the same instructions to remove the other two FTP exit points:
After removing the exit points, end and restart the FTP server with the following commands:
Note: The 22049 error means that FTP couldn't find the file to download. The error was being caused because the required temp file wasn't getting created corrrectly on the AS/400, so the download failed.