CPYFRMIMPF CPF2845 Code 6
what means that can't del Fromfile
ASKED: Aug 5, 2009  4:03 PM GMT
UPDATED: August 5, 2009  5:40:00 PM GMT

Answer Wiki:
Show us the entire message please.
Perhaps it was "Can't find Fromfile?"
CPYFRMIMPF doesn't delete the Fromfile?
We'll probably need the command you issued also.

Phil

it is ok I can copy the File
I create a second Input File new and than it works
than I copy from the new File to the old File ok
I don't really understand but it works


JFRITZ

to complete the Message perhaps other have the same problem
OS400 V5R4
the Command is
CPYFRMIMPF FROMSTMF('/SX703/XSPT.DAT')
TOFILE(SX703#INIT/XSPT)
MBROPT(*REPLACE) RCDDLM(*ALL) STRDLM(*NONE) FLDDLM('^')

the Frome File Exist the record Format is
PDRSPKOM^Customer^Corp^1^0^0^0
PKSP^Customer^Site^1^0^0^0

the to File exist
SX703#INIT/XSPT
Create table xspt (
XSPTTABLENAME char(30),
XSPTSITEPRODUKTNAME char(50),
XSPTSITETYPE char(50),
XSPTDSHID decimal(1),
XSPTLOADDATA decimal(1),
XSPTSITE2SITE decimal(1),
XSPTSITE2CORP decimal(1)
, primary key( XSPTTABLENAME)
)

The Message was in German
------------------------------------------------------------------------------------
The Message before was
Nachrichten-ID . . . . : CPF2845 Bewertung . . . . . . : 40
Nachrichtenart . . . . : Diagnose
Sendedatum . . . . . . : 05.08.09 Sendezeit . . . . . . : 17:49:51

Nachricht . . . : Kopiervorgang aufgrund von Ursachencode 6 nicht
durchgeführt.
Ursache . . . . : Der Befehl CPYFRMIMPF (Aus Importdatei kopieren) oder der
Befehl CPYTOIMPF (In Importdatei kopieren) konnte aufgrund von Ursachencode
6 nicht durchgeführt werden. Ursachencodes: #

6 - Der Inhalt der Ausgangsdatei (FROMFILE) oder der Fehlersatzdatei
(ERRRCDFILE) kann nicht gelöscht werden.
------------------------------------------------------------------------------------
Last Wiki Answer Submitted:  Aug 5, 2009  5:40 PM (GMT)  by  66666666666666666666   35 pts.
Latest Answer Wiki Contributors:  Philpl1jb   36,410 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _