15 pts.
 FTP from QTXTSRC
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

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 110,135 pts.

 

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

 110,135 pts.

 

You can use CPYTOSTMF to copy the member first to a streamfile and then FTP the streamfile.

 0 pts.

 

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:

[target system login] [target system password]
ascii           
put [library]/.[file member] [target file].txt
quit

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')
 5,740 pts.

 

Please ignore that extraneous initial quote on the FTP command.

 5,740 pts.