Q

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

Dig deeper on DB2 UDB (universal databases)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

SearchEnterpriseLinux

SearchDataCenter

Close