COBOL logic to find Multiples of a value
Posted: Wed Jan 16, 2013 4:33 pm
Hi,
My requirement is to check whether the input data is in multiples of another input field, if it so, then i need to set an indicatior to "YES", else it is "NO" .
Example: If input data (50) is in multiples of quantity field (5) , then i need to set indicator to yes.
Input DATA =50,
Quantity = 5
then Indicator to be set to YES.
Can someone help me with the logic to build this.
My requirement is to check whether the input data is in multiples of another input field, if it so, then i need to set an indicatior to "YES", else it is "NO" .
Example: If input data (50) is in multiples of quantity field (5) , then i need to set indicator to yes.
Input DATA =50,
Quantity = 5
then Indicator to be set to YES.
Can someone help me with the logic to build this.