The only way I have been able to avoid dividing by zero is to create two queries, one which does not select the zero divisor and one that does. the one that selects the zero divisor records, has a result field defined to contain a default value that keeps the output records the same. The results of the second query are added to the file member created by the first query.
I will be interested to see if someone has a better answer for you.
You can get a result in the field ‘PERCENT’ to add a value to field ‘pvsddl’
You’ve to make result field PERCENT more characters.