Character delimited csv with double byte data

15 pts.
Tags:
CCSID
DB2
DBCS
Japanese

I have a physical file on the iSeries (V7R1) that I am trying to send to the IFS using CPYTOIMPF. When I open the file on the IFS using Excel I expected to be able to parse the data using "Text to Columns" but the delimiter characters are missing and the text is garbled. Several of the fields contain double byte characters. They are defined with data type "O" (open) and CCSID 65535.

I've tried several combinations of data type and CCSID but all I get is unreadable ASCII text. By the way, I'm trying to use a Japanese character set.

Can anyone lead me through this maze?

Thanks in advance for your assistance.



Software/Hardware used:
iSeries V7.R1, Excel 2007, iSeries Client Access for Windows vsn.6

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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
  • BigKat
    I don't KNOW that CPYTOIMPF can't be setup to handle it properly, but I do know that I have only seen Japanese DBCS handled successfully by using CPYTOPCD with the TRNIGC(*JPN) option specified which creates a file in the QDLS folders.  This file was then moved to an IFS directory and used from there. 
    8,100 pointsBadges:
    report
  • TomLiotta
    I also don't know it can't be done. With little experience to go on and no experimentation, I can think of three things that might relate.   First, it can't work. By definition, the .CSV format doesn't handle DBCS. The file format is defined as a container for basic text. It doesn't know about mixed-byte forms where delimiters and some columns are encoded differently than other columns. If it can work, it must be created as a UTF-16 file. That's what Excel should support. To get it readable in Excel, use the Excel File->Open dialog. Don't double-click, don't use Windows Explorer, and don't drag/drop. The interpretation of how to handle the byte encodings sometimes seems to happen only when processed through the right code paths.   Those are all "quick thoughts" possibilities, not actual results of testing. But they do have some technical background.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following