Talend Data Mapper: Reading COBOL S9(9) COMP Not working properly
I am using Talend Data Mapper to convert Ebcdic Data to Ascii. The conversion works fine for string fields. But when i try it for COMP and COMP fields it is giving a problem. I am reading 2 fields in that format: ID1 PIC S9(9) USAGE COMP - Mapped to Integer32 (Big Endian) ID2 PIC S9(3) USAGE COMP - Mapped to Short16 (Big Endian) The hex value for the sample data in 1st field is "8BE79676" and 2nd field is "A797". The ascii for this is "-1947756938" and "-22633". In the Map i am reading these fields in a Decimal pipe delimited field. But the value converted for the first field is "2347210358" and 2nd one it is "42903". When i convert the hex values manually i noticed that it is converting it as an Unsighed Integer instead of Signed. Can some one help me out with this problem ? Has anyone tried this out in Talend Data Mapper.