Ask the Expert

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

==================================
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.

This was first published in September 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: