|
I've never had this problem before, but now I am working with V4R5 and sending a file to a computer con V5R2, when I send a file for FTP by a CL program the output of this operation goes to the INPUT file.. WHY? The CL PGM PGM OVRDBF FILE(INPUT) TOFILE(QGPL/QTRFSRC) MBR(PGMTRF) OVRDBF FILE(OUTPUT) TOFILE(QGPL/QTRFSRC) MBR(PGM001) FTP RMTSYS(DUMMY) DLTOVR FILE(INPUT OUTPUT) ENDPGM The Input src before to run the program dummy dummy close open xxx.xx.x.25 (Obvious is another IP) user link link bin put QGPL/FTPOBJ QGPL/FTPOBJ.SAVF close quit The Output source is empty and the INPUT file after run the CL is: dummy dummy close open xxx.xx.x.25 user link link bin put QGPL/FTPOBJ QGPL/FTPOBJ.SAVF close quit Output redirected to a file. Input read from specified override file. Cannot find host DUMMY. Enter an FTP subcommand. > dummy ***** Subcommand 'dummy' not valid. For a list of available FTP subcommands, enter subcommand HELP. Enter an FTP subcommand. > close You must first issue the OPEN subcommand. Enter an FTP subcommand. > open XXX.XX.X.XX Connecting to remote host XX.XX.X.XX using port 21. 220-QTCP at xxxx.com 220 Connection will close if idle more than 60 seconds. Enter an FTP subcommand. > user link **** 331 Enter password. 230 LINK logged on. OS/400 is the remote operating system. The TCP/IP version is "V5R2M0". 250 Now using naming format "0". 257 "QGPL" is current library. Enter an FTP subcommand. > bin 200 Representation type is binary IMAGE. Enter an FTP subcommand. > put QGPL/FTPOBJ QGPL/FTPOBJ.SAVF 227 Entering Passive Mode (xxxxxxxxxxxxxxxxxxxx). 150 Sending file to member SAVF in file FTPOBJ in library QGPL. 250 File transfer completed successfully. 185856 bytes transferred in 0.505 seconds. Transfer rate 368.117 KB/Sec Enter an FTP subcommand. > close 221 QUIT subcommand received. Enter an FTP subcommand. > quit Do you know Why??? Regards Nino __________________________________________________________ Find your next car at http://autos.yahoo.ca
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.