07-07-2016 02:41 AM - edited 07-07-2016 02:53 AM
Thanks in advance for your help. I am still a beginner in SAS.
We have 4 numerical variable with different lengt
a b c d
d=a + b + c
We know that a b and d are correct but c can have sometimes one digit too much (can be anywhere in the number).
Do you have an idea how should I code to take away the extra digit in c ? (we can create a new c that is correct)?
edit: we can only take away a digit in c, if by taking a digiti, it's still wrong we want to keep the c value has it is (so user can have a check on it)
Need further help from the community? Please ask a new question.