Wow is that bad. All these variables with no indication of how one would set them. The first comment claims to get user's input but never prompts for anyhing. Another comment claims to delete the script file but only empties it. And it only handles one file.
Long ago I read :REM is quicker then REM. The DOS variables would allow a user to pass in everything you need. You do not need to specify USER unless your host does not require you to signon. And if you do not need to signon, why are you? But thanks for showing the reversed redirection method. Until now I have always used: Echo some text here >outputfile.txt On Fri, 7 Sep 2007 15:21:33 +0530, Yogesh Mahajan <[EMAIL PROTECTED]> wrote: >This could be done by REXX/ CList. > >But if you wish to do write FTP script on client receiving the file, you may >write a DOS shell script (.bat) like this: > ========================================================== ======================= >REM Get user's input - Mainframe IP, FTP ID, Pwd etc... >REM Create downloading script, execute it (ftp) and delete it. >REM >SET strMember='%strInputFileNameFromUser%' >>script.ftp ECHO USER %strUser% >>>script.ftp ECHO %strPwd% >>>script.ftp ECHO prompt n >echo Downloading the file: %strMember% TO %strSProc% >>>script.ftp ECHO get %strMember% %strSProc% >>>script.ftp ECHO bye >ftp -n -s:script.ftp %strMainframe% >TYPE NUL >script.ftp >NOTEPAD %strSProc% > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

