Joined: 06 Jun 2008 Posts: 8217 Location: Dubuque, Iowa, USA
I think you are looking for the MOD operator (to obtain the remainder while performing division) equivalent in COBOL.
Please refer the DIVIDE ...... REMAINDER in COBOL.
DIVIDE A BY B GIVING C REMAINDER D.
I thought like %d, %f in displays..
Never though it could be for mod operator..
Another example of why it is so vital to be very clear and precise (and use the correct terminology) in the questions posed on this forum -- so frequently there are multiple interpretations to what is asked and additional clarification is required to answer the actual question, not the understood question.