I previously sent this question around 2 A.M. est. This revised version should be more coherent.
How do you send data in a QTXTSRC member via the IFS in order to FTP it from a dos prompt or in a CLP? I created a stream file but I am receiving "File not found" when I run the put command. The stream file is in the root directory.
Software/Hardware used:
Iseries V5R4.
Thanks in advance.
Seeker1
ASKED:
December 17, 2010 7:28 AM
UPDATED:
December 23, 2010 4:56 PM
We’d need to see the PUT command before making specific comments. From the PUT command, we might be able to ask a couple questions that narrow the problem down quickly.
You can FTP a QTXTSRC member directly, or you can use CPYTOSTMF to copy the member first to a streamfile and then FTP the streamfile.
What do you want to do? Do you want to FTP straight out of QTXTSRC or do you prefer FTPing a streamfile copy of the QTXTSRC member?
Tom
Please note that if you can’t help us understand the question, we can’t supply a useful answer. What procedure are you trying to do? Please describe the steps that you want to happen.
Tom
You can use CPYTOSTMF to copy the member first to a streamfile and then FTP the streamfile.
Is there any particular reason the file has to be in the IFS? We send data via FTP directly from the QSYS.LIB file system.
This is some (slightly modified) FTP source from a process run this morning:
There are overrides in place for the INPUT (FTP source) & OUTPUT (FTP log) files, and the FTP command is as follows:
'FTP RMTSYS('nnn.nnn.nnn.nnn')Please ignore that extraneous initial quote on the FTP command.