i have a Zoned decimal field (start pos 31, length 9) in file, where i need to divide this field by 1000 and rounded.
using the below Syncsort syntax i could achieve it, but there is an issue with rounding.
31,9,ZD,DIV,+1000,ZD,LENGTH=9
for eg, For value 00000487C (000004873), after the above arithmetic operation, i am getting it rounded as 4.
Since 000004873/1000 gives 4.87 (more than 4.50), I need to round it to 5.
let me know what else need I need to do to achive this
Thanks