On size error option, COBOL Programming

ON SIZE ERROR OPTION:

 If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. To take an illustration, let A and B be two elementary items with pictures 99 & 999 respectively. Also assume that the present values of the two fields are 35 & 980 correspondingly. Now, the execution of the statement ADD A to B causes a size error. This is because the result field of B is not big enough to hold the result of the addition, specifically, 1015.

Whenever a size error occurs, the contents of the result field after the operation is unpredictable.  Though, the processing is not-terminated and the computer will continue with the execution of the next statement regardless of the fact that a size error occurred. 

 

Posted Date: 10/17/2012 1:25:08 AM | Location : United States







Related Discussions:- On size error option, Assignment Help, Ask Question on On size error option, Get Answer, Expert's Help, On size error option Discussions

Write discussion on On size error option
Your posts are moderated
Related Questions
PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

COMPUTE VERB: The COMPUTE verb is very powerful. All the evaluations performed by the other 4 verbs can also be completed easily by using the COMPUTE verb. Its normal format i

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE DIVISION.

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

FILE-CONTROL ENTRIES FOR THE SEQUENTIAL FILES: The characteristics of each and every files handled in a program are specified in the ENVIRONMENT DIVISION and DATA DIVISION.

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

DIVIDE VERB: The aim of the DIVIDE verb is to divide one number by the other and to store the result.  There are few forms of this verb. One of its forms is as shown below:

Major difference between file and array how does record read from array and file why we are not preparing array for real time