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
Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

RELATIVE FILES: The Files that are stored on a direct access storage medium like magnetic disk are frequently known as direct access files. The COBOL supports three different

INDEXED TABLES: The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as sub

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

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

REWRITE statement: The REWRITE statement is used to update the existing record in a disk file. The normal format is as shown below: REWRIE  record-name  [  FROM      ide

Data Division: The Data Division is a part of the COBOL program where every data item processed by the program is described. It is very important to note that unless a data

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