การกำหนด Preserve Type โดยไปที่ Stage Tab ของ Aggregator Stage เลือก Property Tab และ Click ที่ Sum Output Column จะ ปรากฏ Property ให้เลือก ที่ช่อง Available property to add เลือก Decimal Output (รูป 1) จากนั้น Decimal Output Property จะไปปรากฏที่ใต้ Sum Output Column Property (รูป 2) แล้วจึงกำหนดค่า ความกว้างของข้อมูล เช่น 8,2 คือ ความกว้างที่ใช้เก็บตัวเลขที่เป็นจำนวนเต็ม คือ 6 และ ความกว้างที่ใช้เก็บตัวเลขที่เป็นทศนิยม คือ 2
หากไม่ได้กำหนด จะ ปรากฏ Error Massage ที่ Data Stage Diractor ดังนี้
agg_Sum_CRN_BAL: When checking operator: When binding output interface field "CRN_BAL" to field "CRN_BAL": Implicit conversion from source type "dfloat" to result type "decimal[16,2]": Possible range/precision limitation.
No comments:
Post a Comment