I have found the reason for the return code -5. Although it is supposed to mean 'subcommand syntax error' that is not my case. The problem is that there is not enough space on the target.
I'm doing the ftp to a network drive which has a limit of 30 MB for each user. The user in question has used his full 30 MB. When I use the VMFTP macro I get a return code -5. But when I type the commands in CMS one at a time I get a return code on the PUT of 550 which means there is not enough space. So there must be a problem with VMFTP. BTW, I tried MKDIR TEST in a VMFTP macro for this same user and VMFTP gave me the correct response that there is not enough room on the disk. /Fran --------------------------------------------------------------- Here is the console log: ftp 10.1.72.40 VM TCP/IP FTP Level 3A0 Connecting to 10.1.xx.xx, port 21 220 Microsoft FTP Service USER (identify yourself to the host): srunet\xxxxxxxxx >>>USER srunet\xxxxxxxxx 331 Password required for srunet\xxxxxxxxx. Password: >>>PASS ******** 230 User srunet\aaamfuser logged in. Command: cd /eliott.baker >>>CWD /eliott.baker 250 CWD command successful. Command: cd Mainframe >>>CWD Mainframe 250 CWD command successful. Command: dir >>>PORT 10,1,72,34,209,199 200 PORT command successful. >>>LIST 150 Opening ASCII mode data connection for /bin/ls. 08-19-08 04:45PM <DIR> Class_Lists 08-19-08 04:46PM <DIR> DARS 08-19-08 04:50PM <DIR> QWCONF 08-19-08 04:41PM <DIR> RS133 226 Transfer complete. Command: cd rs133 >>>CWD rs133 250 CWD command successful. Command: put NO_INST.TXT NO_INST_2008-08-29_15-57-07_FRI.txt >>>SITE VARrecfm 500 'SITE VARrecfm': command not understood >>>PORT 10,1,72,34,209,200 200 PORT command successful. >>>STOR NO_INST_2008-08-29_15-57-07_FRI.txt 550 NO_INST_2008-08-29_15-57-07_FRI.txt: There is not enough space on the disk. Command: quit >>>QUIT 221