5 pts.
 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: September 30, 2009  1:47 PM
UPDATED: September 30, 2009  9:23 PM

Answer Wiki:
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 Wiki Answer Submitted:  September 30, 2009  9:23 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _