campos en formado Zoned Decimal (Overpunch)
Forums
saludos, tengo datos que viajan en este formado, 14345{ 7663H, que son datos Zoned Decimal (Overpunch), muy común en mainframes IBM/AS400. y cuando importo la tabla asi mismo idea lo trae, y no se la forma de convertir esos datos que sean leible en IDEA. tuve que desarrollar un sql para poder convertir cada dato de esto a forma legible , asi TO_NUMBER(
SUBSTR(mcta.CTA_INTVIGENTE,1,10) ||
DECODE(SUBSTR(mcta.CTA_INTVIGENTE,-1,1),
'{','0','A','1','B','2','C','3','D','4',
'E','5','F','6','G','7','H','8','I','9',
'}','0','J','1','K','2','L','3','M','4',
'N','5','O','6','P','7','Q','8','R','9')
)
*
DECODE(SUBSTR(mcta.CTA_INTVIGENTE,-1,1),
'}',-1,'J',-1,'K',-1,'L',-1,'M',-1,
'N',-1,'O',-1,'P',-1,'Q',-1,'R',-1,1)
)/100 intvigente
Have you tried bringing the…
Have you tried bringing the file in as an EBCDIC fixed length file?
If you do there is an option for Zoned that might be what you are lookging for or one of the other options might work.