Converting a Smallint to Decimal

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
dtatem
Participant
Posts: 54
Joined: Wed Jun 09, 2004 7:50 am

Converting a Smallint to Decimal

Post by dtatem »

Is there an easy way of converting an incoming data type of "smallint" to a decimal? Or is it just as simple as assigning the target field a decimal(5,2)?


Thanks

dtatem
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try AsFloat() or AsDouble() in the px transformer for a parallel job. Type conversions are explicitly required in a parallel job.
For a server job its as easy as changing the target datatype.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply