Get a copy of VMFTP from the IBM VM downloads page. You will not regret it.
It allows you to write rexx ftp scripts and you can check return codes as well as look at the results of each ftp command in case you need to determine what to do next. ____________________ Jim Hughes 603-271-5586 "It is fun to do the impossible." -----Original Message----- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Steve Perez Sent: Wednesday, December 08, 2010 5:05 PM To: IBMVM@LISTSERV.UARK.EDU Subject: FTP within REXX EXEC Hello Listers, I have written an REXX exec to file transfer monitor data files from our = z/VM Lpar to our z/OS Lpar using FTP. The following is an excerpt from = that code: push 'quit' = = push put TEST.FILE.A 'my.zos.dsn' ... other ftp commands here ... = 'FTP' ftpaddress My question is. What can I do to retrieve the return code if this fails = or is successful? Or any other ideas or suggestions I can use to determine if the file successfully transferred? Thanks in advance for any and all replies. Steve.