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
PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia

Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

FILE-CONTROL paragraph for the indexed files: The common format for the SELECT clause for a file is as shown below: SELECT  file-name  ASSIGN   TO  implementor -name

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.

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

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

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

PERFORM WITH VARYING OPTION: The format is as shown below: