Problem solve Get help with specific problems with your technologies, process and projects.

ILE COBOL error when dividing by zero

I want to let an ILE COBOL program cause an error when a dividing by zero occurs without using the ON ERROR option. I believe it has to do with the floating point masking bit. But how do I set this in a COBOL program and make it valid for the rest of the job?
I'm not sure what you are after here. It's easy to detect a potential divide-by-zero -- just test the divisor; if it's zero, don't do the divide, and perform whatever corrective processing you want to.


The Best Web Links: tips, tutorials and more.

Visit the ITKnowledge Exchange and get answers to your developing questions fast.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

Dig Deeper on iSeries ILE programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.