Arithmetic verbs, COBOL Programming

ARITHMETIC VERBS:

Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to perform these computations.  All these verbs can hold either identifiers or numeric literals or both. In the case of identifiers, they should be elementary numeric fields, and the identifiers used after the GIVING option should be edited or unedited numeric fields.  Some of the arithmetic verbs in their most elementary forms are ADD Verb, SUBTRACT Verb, MULTIPLY Verb, DIVIDE Verb, and COMPUTE Verb.

 

 

Posted Date: 10/16/2012 5:15:48 AM | Location : United States







Related Discussions:- Arithmetic verbs, Assignment Help, Ask Question on Arithmetic verbs, Get Answer, Expert's Help, Arithmetic verbs Discussions

Write discussion on Arithmetic verbs
Your posts are moderated
Related Questions
/ (Slash Insertion): The edit character slash (/) also termed as virgule or stroke, may appear anyplace in the picture. When used, it will be inserted. More than one slash can

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

ON SIZE ERROR OPTION: Whenever a size error occurs, the contents of the result field after the operation is unpredictable.  Though, the processing is not-terminated and the co

BLOCK CONTAINS CLAUSE: Integer -1 of the BLOCK CONTAINS clause indicates the block size either in terms of records or in terms of characters. For illustration, BLOCK CONTAINS

WRITE STATEMENT: The records are written to be logical place as determined from the value of the record key. The INVALID KEY condition occurs in the cases shown below: (i)

INPUT-OUTPUT SECTION: This section holds information regarding the files to be used in the program. There are 2 paragraphs in this section- FILE-CONTROL & I-O-CONTROL. The

Display control verbs in Cobol

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:

Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an