DataTypePicComp3Unsigned

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ashik_punar
Premium Member
Premium Member
Posts: 71
Joined: Mon Nov 13, 2006 12:40 am

DataTypePicComp3Unsigned

Post by ashik_punar »

Hi All,
Can anybody please let me know what exactly "DataTypePicComp3Unsigned " function does.


Thanks in Advance
Ashik Mirza
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: DataTypePicComp3Unsigned

Post 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.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
Post Reply