Getting error when converting file to csv format using CPYTOIMPF
5 pts.
0
Q:
Getting error when converting file to csv format using CPYTOIMPF
I am trying to convert a data file to csv format using command CPYTOIMPF.

The data file cotains fields with type "O" (DBCS-Open data) and I received an error. Error id CPF2845 Code 1.

How to resolve this problem?

command used: CPYTOIMPF  FROMFILE(&LIB/&FILE &MBR) TOSTMF(&STMF) +              STMFCODPAG(*STMF) RCDDLM(*CRLF)  



Software/Hardware used:
AS/400
ASKED: Sep 30 2009  1:47 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
3190 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Try changing:

CPYTOIMPF FROMFILE(&LIB/&FILE &MBR) TOSTMF(&STMF) +
STMFCODPAG(*STMF) RCDDLM(*CRLF)

To:

CPYTOIMPF FROMFILE(&LIB/&FILE &MBR) TOSTMF(&STMF) +
STMFCODPAG(*PCASCII) RCDDLM(*CRLF)
Last Answered: Sep 30 2009  9:23 PM GMT by Teandy   3190 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0