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
FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

Comparison of Numeric Operands: We are well-known with the kind of the relational condition where both the operands are numeric. The comparison in this situation is algebraic

COBOL Words: The COBOL word can be formed by using the characters as shown below: 0-9 A-Z (a-z) - (hyphen) The rules below should be hold in forming the COBOL words.

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

Object-Computer - Configuration section: The computer name specifies a specific computer on which the object program is to be executed. The MEMORY SIZE is used to show the

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

Label Records / Disk Directory: The most important information stored in the header label is what is termed as the file title. In the situation of magnetic-disk files the labe