I am a newbie in System i, and i am struggling with this issue.
I am not able to copy files ( with content) in my system. After cpyf I receive error MCH3402:
CPYF sysoprt035/BGPF TOFILE(CPIT035/BGPF) MBROPT(*REPLACE) FMTOPT(*NOCHK)
Function check. MCH3402 unmonitored by QCPEXCON at statement *N,
0 records copied to BGPF in CPIT035.
Also I noticed that CPY cmd does not exist in QSYS LIB.
Does anyone have a clue on this?
thanks in advance.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2012-03-16T20:47:08Z by ScottForstie
Pinned topic CPI not found in QSYS
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-03-16T20:47:08Z at 2012-03-16T20:47:08Z by ScottForstie
ScottForstie 110000AUM638 PostsACCEPTED ANSWER
Re: CPI not found in QSYS2012-03-16T20:47:08Z in response to SystemAdminHello Anuar,
First, welcome to IBM i.
For your question, I can think of two paths to take:
1) Open a PMR. The MCH3402 in QCPEXCON looks like an IBM defect to me and going through IBM Service is the best way to get the problem understood and solved.
2) Use the CRTDUPOBJ command instead. We typically recommend CRTDUPOBJ over CPYF.
CRTDUPOBJ duplicates the file whether its a physical or logical, but CPYF always creates a physical file that is SIMILAR to the source, but does not have all the attributes of the source file.
If you point CPYF to copy an SQL view or logical file, the command produces a physical file.
If you point CRTDUPOBJ to copy an SQL view or logical file, the command produces a logical file.
The file's level identifier, constraints and triggers are additional examples of the difference between the two commands.
CPYF with create file (*YES) is all about copying data, not the files attributes.
Hope this helps.
Regards, Scott Forstie