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
SEQUENTIAL FILES WITH THE VARIABLE-LENGTH RECORDS: The Magnetic - tape or disk files can hold variable-length records. In this situation the file can have records with various

Structure of a COBOL Program: Every COBOL program should have the 4 divisions in the order in which they are specified below: 1. Identification division 2. Environment D


Transaction file : A transaction file is a file which contains new records those changes to old records which are used to update the master file. The problem of file updatio

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

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

I need help with a COBOL programming assingment. I have started the program but I need help completing the program. I have 5 errors. Here is the question. 10. Suppose your company

Non numeric: The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum