|
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 _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.