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
MORE INFORMATION ON THIS TOPIC
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)
Related Q&A from Kent Milligan
To monitor members stuck within a physical file on AS/400, you can periodically use the display file description (DSPFD) command to create an output ...continue reading
Create a host variable of the where in statement on the fly with dynamic SQL.continue reading
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.