Skip to main content

[archive] Division by zero

  • October 1, 2008
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 01 October 2008]

Hello,

Has anyone tried catching division by zero using the configuration variable A_CHECKDIV in version 8? I've tried setting it to 1, but I still get the default behavior (undefined result) when I test it.

4 replies

[Migrated content. Thread originally posted on 01 October 2008]

Hello,

Has anyone tried catching division by zero using the configuration variable A_CHECKDIV in version 8? I've tried setting it to 1, but I still get the default behavior (undefined result) when I test it.
A_CHECKDIV can be set to:

NONE or: "0" : The default setting. This setting retains the default behavior of the runtime: the results are undefined.

ABEND or: "1", STOP, ABORT
This setting causes the runtime to catch the divide by zero condition and exit with the error message: "Attempt to divide by zero".

MOVE_ZERO or: "2", ZERO_RESULT, MOVE_ZEROS
This setting causes the runtime to move zeroes to the destination item(s) and continue.

Are you not receiving the error message, do you get a maeesage in your trace file, do you use the SIZE ERROR clause?

[Migrated content. Thread originally posted on 01 October 2008]

Hello,

Has anyone tried catching division by zero using the configuration variable A_CHECKDIV in version 8? I've tried setting it to 1, but I still get the default behavior (undefined result) when I test it.
Hi, Dilbert. Thanks for responding.

I don't receive the error message, there's nothing in my tracefile, and I don't use the SIZE ERROR clause.

[Migrated content. Thread originally posted on 01 October 2008]

Hello,

Has anyone tried catching division by zero using the configuration variable A_CHECKDIV in version 8? I've tried setting it to 1, but I still get the default behavior (undefined result) when I test it.
Hi, Dilbert. Thanks for responding.

I don't receive the error message, there's nothing in my tracefile, and I don't use the SIZE ERROR clause.

[Migrated content. Thread originally posted on 01 October 2008]

Hello,

Has anyone tried catching division by zero using the configuration variable A_CHECKDIV in version 8? I've tried setting it to 1, but I still get the default behavior (undefined result) when I test it.
Hi, Dilbert. Thanks for responding.

I don't receive the error message, there's nothing in my tracefile, and I don't use the SIZE ERROR clause.