Hi All,
I am Having COBOL + DB2 Pgm. My Current Activity is I am Reading Sequential File, Validating Each Field & Insertig Record to a Table. I am Facing issue with one of field, when Inserting Record to the Table its not getting Inserted In the Requiired Format. Datatype of table field is DECIMAL(5,4). Below is is the Example Having Actual Result & Expected Result.
Table Col. Data Type = DECIMAL(5,4).
Record 1: Value = 850 When Inserted To Table Value is +850.0000, But Expected Result is 8.50
Record 2: Value = 2025 When Inserted To Table Value is +2025.0000, But Expected Result is 20.25.
Record 3: Value = 89 When Inserted To Table Value is +89.00, But Expected Result is +00.89
I have defned Var. Having Pic. Clause as Pic 9(05) V 9(04). Please do let me know how to over come above stated Problem. Are there any Function in DB2 which can be use to Overcome the stated issue.
Please Reply ASAP.
Thanks
Kind Rgds
Vineet Anand