VMFTP is a wonderful tool and and good one to have around. I wrote several VMFTP macros and they worked very well. That being said, if all
you want to do is issue FTP commands from a file and you don't care to check the return codes, then the documented, (TCP/IP User's Guide), way t o do it on CMS is to put your commands into a CMS file, then issue a FILEDE F for the file with a DDname of INPUT before invoking FTP. If you want the output from FTP to go to a file instead of the console, issue a FILEDEF with a DDname of OUTPUT before invoking FTP. For example: FILEDEF INPUT DISK CMS2MVS FTPCMDS A FILEDEF OUTPUT DISK CMS2MVS OUTPUT A FTP server Of course, you will want to clear the FILEDEFs after the FTP completes. (You would probably do all of this from an Exec, of course!) -- Dale R. Smith "Profanity is the one language that all programmers understand." - Anonymous On Wed, 5 Dec 2007 10:56:23 -0800, Schuh, Richard <[EMAIL PROTECTED]> wrote : >We have a one-time need to FTP thousands of files to an MVS system from >VM. Is there any way to coax FTP to read a file for its subcommands? I >see nothing in the syntax that performs the same function as the Windows >switch -s:fileid. Is it really necessary to stack all of the subcommands >before issuing the FTP command? >Regards, >Richard Schuh