Just fyi - You can use the NETRC DATA file to store userid/pw for different hosts... that way at least you're not hardcoding that part in an EXEC. If it's present -- you can assume you will be logged in when you start FTP -- so you just queue up the commands you want issued, and skip the USER part..
Scott On Tue, Sep 1, 2009 at 3:44 PM, Wakser, David <[email protected] > wrote: > You'll have to show the whole EXEC, if you really want us to figure it out. > Following is one that works fine in z/VM 5.3 (it transfers VM to VM, so > ignore the SENDSITE command and use what you need). Is it possible that the > size of the VM is too small? > > David Wakser > > arg fn ft fm . /* file to be sent */ > ip = "192.168.123.123" /* IP address of VM > "CP LINK TCPMAINT 592 592 RR" > "ACC 592 T" > "MAKEBUF" > queue ip > queue "USER Password" /* Userid & password of foreign system */ > queue "ACCT xyz123" /* WRITE or MULTI password of foreign 191 disk */ > queue "SENDSITE" /* Prevent sending of defaults */ > queue "EBCDIC" /* */ > /* Issue the PUT command */ > queue "PUT" fn || "." || ft || "." || fm "ABCXYZ.TEST.A" > queue "CLOSE" /* Close conection to VM */ > queue "QUIT" /* Quit from FTP mode */ > "FTP" > return_code = rc > if return_code ¬= 0 then > do > say " Bad return code" return_code "from FTP!" > end > > > -----Original Message----- > From: The IBM z/VM Operating System [mailto:[email protected]] On > Behalf Of Frank M. Ramaekers > Sent: Tuesday, September 01, 2009 5:01 PM > To: [email protected] > Subject: Scripting FTP > > Can you script FTP? Help doesn't mention it. If I attempt to QUEUE > the commands from a REXX program, I get: > > VM TCP/IP FTP Level 540 > > AMPX014I PROTECTION EXCEPTION > TRACE BACK OF CALLED ROUTINES > ROUTINE STMT AT ADDRESS IN MODULE > GETOPTIONS 157 00EB0B00 FTPARSER > MAINLOOP 11 00E0048E FTMAIN > <MAIN-PROGRAM> 1 00DFF0C0 FTP > VSPASCAL 00E32C8A > > > AMPX011I OPERATION EXCEPTION > TRACE BACK OF CALLED ROUTINES > ROUTINE STMT AT ADDRESS IN MODULE > GETOPTIONS 157 07ED28CE FTPARSER > MAINLOOP 11 00E0048E FTMAIN > <MAIN-PROGRAM> 1 00DFF0C0 FTP > VSPASCAL 00E32C8A > > Frank M. Ramaekers Jr. > Systems Programmer MCP, MCP+I, MCSE & RHCE > American Income Life Insurance Co. Phone: (254)761-6649 > 1200 Wooded Acres Dr. Fax: (254)741-5777 > Waco, Texas 76710 > > > > > > > _____________________________________________________ > > This message contains information which is privileged and confidential and > is solely for the use of the > > intended recipient. If you are not the intended recipient, be aware that > any review, disclosure, > > copying, distribution, or use of the contents of this message is strictly > prohibited. If you have > > received this in error, please destroy it immediately and notify us at > [email protected]. > > Confidentiality Note: This e-mail, including any attachment to it, may > contain material that is confidential, proprietary, privileged and/or > "Protected Health Information," within the meaning of the regulations under > the Health Insurance Portability & Accountability Act as amended. If it is > not clear that you are the intended recipient, you are hereby notified that > you have received this transmittal in error, and any review, dissemination, > distribution or copying of this e-mail, including any attachment to it, is > strictly prohibited. If you have received this e-mail in error, please > immediately return it to the sender and delete it from your system. Thank > you. >
