CA InterTest displays the current value of TASKNUM in the Auto Data view, as shown in the following illustration:

When the Auto Data view is open, CA InterTest automatically displays the values of the variables associated with a statement. (The Watch Data view displays the value of data items that you want to watch.) In this case, TASKNUM has been displayed in the Auto Data view. The left column shows the name of the data item. In the columns to the right are the field's display value, hex value, and data type in the appropriate display format.
Now take a look at the contents of TASKNUM. Confirm that the value stored in TASKNUM is not a valid packed decimal value by examining its current value in the Auto Data view; that is, its value prior to the execution of the ADD statement that triggered the S0C7. Instead, it contains low‑values (binary zeros). COBOL does not allow you to add a value to a field initialized with low values.
| Copyright © 2009 CA. All rights reserved. | Email CA about this topic |