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

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close