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
Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

I uploaded a file from PC to Mainframe, variable LRCL 256. In my COBOL program I defined it as FD INPUT-FILE LABEL RECORDS ARE OMITTED BLOCK CONTAINS 0 RECORDING MODE

DELETE STATEMENT : The file should be opened in the I-O mode. If the access is SEQUENTIAL, the INVALID KEY phrase must be specified. Rather than, the last input-output state

RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

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

RULES OF MOVE VERB:  The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to

PROGRAM FOR MASTER FILE MAINTENANCE: We have to write a program to keep the stu-file for which a record has just 2 fields,viz., rno(Roll Number) and name(Student Name). Give t

Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic