Page 1 of 1

DataTypePicComp3Unsigned

Posted: Thu Aug 23, 2007 1:43 am
by ashik_punar
Hi All,
Can anybody please let me know what exactly "DataTypePicComp3Unsigned " function does.


Thanks in Advance
Ashik Mirza

Posted: Thu Aug 23, 2007 2:08 am
by ArndW
I'm not at a DataStage machine so I can't check, but it sounds like a cobol type conversion routine as part of the sdk. Actually, it looks more like a datatype and not a routine - where did you see this? If it is in the routines tree then you can always open up the routine and look at the source, this should give ample indication of what it does.

Re: DataTypePicComp3Unsigned

Posted: Thu Aug 23, 2007 3:02 am
by sachin1
hello it is in category sdk\DataType\DataTypePicComp3Unsigned.

and it says that this routine is used for
Converts an unsigned packed decimal number into an integer.

can you please elaborate more on this ArndW.

Posted: Thu Aug 23, 2007 4:20 am
by ArndW
COBOL has a COMP-3 attribute that can be applied to numbers. Instead of storing them as ASCII digits the COMP-3 type used BCD (binary coded decimal) to store two digits per byte. This routine just changes that binary type back into digit form.