|
You may have to use the STRTCPFTP command in batch. I know that's what we use under the covers of a home-grown FTPBATCH command. Kevin Monahan Sr Programmer/Analyst JL Hammett Co 781-848-1000 x1114 mailto:kevin.monahan@hammett.com www.hammett.com > -----Original Message----- > From: midrange-l-admin@midrange.com > [mailto:midrange-l-admin@midrange.com]On Behalf Of Arlen Nissan > Sent: Thursday, June 20, 2002 10:33 AM > To: midrange-l@midrange.com > Subject: FTP Batch Error in Bound Module > > > > I put a CLLE module in a RPGLE batch program with a Callb, I checked the FTP > command is allowed *Batch mode. > > PGM > OVRDBF FILE(INPUT) TOFILE(AAOBJ10A/FTPSRC) + > MBR(xxxxxxxx) > OVRDBF FILE(OUTPUT) TOFILE(AAOBJ10A/FTPSRC) + > MBR(DFSLOG) > FTP RMTSYS('xxx.xx.x.xxx') > DLTOVR FILE(INPUT OUTPUT) > > ENDPGM > > This is the ftp scrip source > > userprf password > cd pinvi > put library/df510dfp.DFS0617 > Quit > > > If I run this interactively as a program it works, I get the following > messages on the joblog if used in the RPGLE Batch program. > > Message . . . . : 2100 - FTP RMTSYS('XXX.XX.X.XXX') > CPD0772 Escape > 00 06/17/02 21:04:48 QSNDEVQ QSYS *STMT QSNDEVQ > QSYS > >From module . . . . . . . . : QSNERR From > procedure . . . . . . : SetErr > Statement . . . . . . . . . : 3 > To module . . . . . . . . . : QSNDEVQ > To procedure . . . . . . . : ASPGetCHRID_Def ASPGetCHRID_Def > Statement . . . . . . . . . : 1 > Message . . . . : Program contains commands only valid when run > interactively. > Cause . . . . . : If program is run using batch processing, program > logic must ensure interactive-only commands are not run. Recovery . . . : > Remove the interactive-only commands, and then try the command again. > > So it seems to blow up on the FTP command, any hints from anyone
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.