Comparison of the numeric operand with nonnumeric operand, COBOL Programming

Comparison of the Numeric Operand with Nonnumeric Operand:

The numeric operand can be compared to the nonnumeric operand subject to the restrictions which are as follows.

  (i)   The numeric operand should be an integer data item or integer literal.

  (ii)   Both the operands should have similar USAGE (DISPLAY or some form of the DISPLAY).

During the time of comparison, the numeric operand is treated as if its value were moved to an alphanumeric item were then compared to the nonnumeric field.

 

Posted Date: 10/17/2012 1:36:21 AM | Location : United States







Related Discussions:- Comparison of the numeric operand with nonnumeric operand, Assignment Help, Ask Question on Comparison of the numeric operand with nonnumeric operand, Get Answer, Expert's Help, Comparison of the numeric operand with nonnumeric operand Discussions

Write discussion on Comparison of the numeric operand with nonnumeric operand
Your posts are moderated
Related Questions
, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

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

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

Example of Level numbers - cobol programming: To explain the hierarchical structure introduced above, the concept of the level number is employed in COBOL. The most broad

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

PROCEDURE DIVISION statements for the relative files: The statements OPEN, CLOSE, READ, WRITE and REWRITE that are available for sequential files are also available for the re

OCCURS CLAUSE - PROGRAM: We have to write a program to elaborate occurs clause. Get names and marks of the students and show them on the screen.   identification division.

Illustration of perform statement: PERFORM    CALCUALTE-TAX. In this illustration, the CALCULATE-TAX is either a section name or paragraph name. Assume that it is a section

File Activity: The file activity is a measure of the proportion of records processed during an update run. Therefore we define the activity ration as shown below. Activi

Floating Insertion   The currency symbol ($) can emerge in multiples on the left-hand side of the picture. In this situation the character will be treated in similar way as t