How to transform EBCDIC packed decimal into ASCII?
Posted: Sun Feb 03, 2008 7:50 am
I tried both Sequencial and Complex Flat File stage to transform EBCDIC file into ASCII file. It works well for transforming char. But it will always get import error when transforming packed decimal.
For example, the packed decimal 27 0f in the EBCDIC file is supposed to be transformed into decimal 270 in ASCII. But I got the log below:
Field "col1" has import error and no default value; data: {' 0f}, at offset: 0
Is there something wrong when importing the file? (' is the ASCII character for 27). I have already set the character set to EBCDIC.
For example, the packed decimal 27 0f in the EBCDIC file is supposed to be transformed into decimal 270 in ASCII. But I got the log below:
Field "col1" has import error and no default value; data: {' 0f}, at offset: 0
Is there something wrong when importing the file? (' is the ASCII character for 27). I have already set the character set to EBCDIC.