Syntax
SUBTRACT one-quantity FROM second-quantity
For example,
SUBTRACT WS-VAR-2 FROM WS-VAR-1
Consider the variable WS-VAR-1 = 10, WS-VAR-2=30, subtracting WS-VAR-2 from WS-VAR-1 would result in the difference between 30 and 10. The answer is 20. This final result is stored in WS-VAR-2. SUBTRACT B FROM A is equivalent to the statement A = A – B.
![Image03[2] Image03[2]](http://lh3.ggpht.com/_sQvdFWqMlMg/Sxr5p9YBIbI/AAAAAAAABQs/PG66SYP2myM/Image03%5B2%5D_thumb%5B2%5D.png?imgmax=800)
The example above is shown in the code snippet below :
![Image04[2] Image04[2]](http://lh4.ggpht.com/_sQvdFWqMlMg/Sxr5vOyB_ZI/AAAAAAAABQ0/5owylTq6ytg/Image04%5B2%5D_thumb%5B3%5D.png?imgmax=800)