I have a requiremnt as to change the sign of a packed decimal S9(7)V99 where it can have values like -100.23. I need to change the sign of this value to '+100.23'
I have these in a dataset and there are more than 1000 records in it.
Can anyone suggest me how to do this? It would be preferable if we can do this through JCL.
S9(7)V99 is a 4-byte PD value (it does NOT contain the decimal point internally). If you want to change all minus values to plus values, you can use these DFSORT control statements where p is the starting position of the 4-byte PD field: