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
Data Division: The Data Division is a part of the COBOL program where every data item processed by the program is described. It is very important to note that unless a data

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

Can u please let me know how can i use SSA''s in IMS while fetching segments. Thanks, Rajesh

PROGRAM FOR CONDITION NAMES: We have to write a simple program to demonstrate Condition names usage.  identification division.   program- id.   environment division.

Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f

REDEFINES CLAUSE: At times it may be found that two or more storage regions defined in the DATA DIVISION are not in use concurrently. In such situations only one storage regio

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co


WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file