Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Copying a stream file to a physical file

How can I copy a stream file to a physical file in a native iSeries library/file? When I try the CPYFRMSTMF command, it does not seem to recognize my PF name. MF1125 is my personal library on the iSeries. The file I?m trying to copy from is on the IFS in a directory named webMethods.

This he statement I am using:

===> CPYFRMSTMF FROMSTMF('/webMethods/x12data.txt')
TOMBR('/mf1125.lib/ecpthginfx.file') MBROPT(*ADD) DBFCCSID819)

Here is the error:

Object not a QSYS.LIB object. Object is /mf1125.lib/ecpthginfx.file. Perhaps I have the file name in the wrong format, or I need to link to the iSeries file before performing the copy. Can you shed some light on this matter?
The TOMBR parameter file name format is wrong, it needs to be in the form of: /QSYS.LIB/MF1125.LIB/ECPTHGINFX.FILE/MBR1.MBR


Check out this Search400.com Featured Topic: Database issues resolved

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: Tips, tutorials and more.

Dig Deeper on DB2 UDB (universal databases)