Relational condition - cobol programming, COBOL Programming

RELATIONAL CONDITION:

 We know that a relational condition specifies a comparison between two operands and has the form.

    Operand-1    relational-operator   operand-2

where the relational-operator can be anyone of the shown below:

    IS    [NOT]     GREATER     THAN

    IS    [NOT]              >            THAN

    IS    [NOT]     LESS              THAN

    IS    [NOT]              <            THAN

    IS    [NOT]     EQUAL           TO

    IS    [NOT]              =              

It was acknowledged earlier that the operands can be an identifier or a literal. Though, either operand can also be an arithmetic expression but should contain at least one reference to an identifier. Occasionally, operand-1 and operand-2 are respectively referred to as the subject and object of the relational condition.

 

Posted Date: 10/17/2012 1:34:02 AM | Location : United States







Related Discussions:- Relational condition - cobol programming, Assignment Help, Ask Question on Relational condition - cobol programming, Get Answer, Expert's Help, Relational condition - cobol programming Discussions

Write discussion on Relational condition - cobol programming
Your posts are moderated
Related Questions
Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

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

SIMPLE MERGE VERB: Like sorting, the merging of files is often required in different commercial application. It is likely to merge two or more files with the help of one MERGE

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

Column and Field in COBOL program: In COBOL there are 2 types of entries termed as margin A and margin B entries. The Margin A entries start from the column 8, 9, 10 or 11 and

PROGRAM FOR RENAMES CLAUSE: identification division. program- id. environment division. data division. working-storage section. 01 emp.      02 empdet.

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los

RENAMES CLAUSE: At times re-grouping of an elementary data items in a record may be essential so that they can belong to the original as well as to the latest group. This is o

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