Conditions-name condition, COBOL Programming


 The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be defined separately. It should always be related to a data name known as the conditional variable. It may be defined in any part of the DATA DIVISION and should be placed instantly after the entry which defines the conditional variable. Here more than one condition names are related to the conditional variable. In that situation all the condition name entries should follow the entry defining the conditional variable.

The condition name entry identifies a single value or a set of values and/or a range of values for the conditional variable. Whenever it supposes any of these values the condition name becomes true. Or else, the condition name is set to false. It should be noted that it is not possible to set the value of a condition name explicitly.

The value of a condition name is always set implicitly depending on the present value of the conditional variable. The format for the condition name entry is as shown below.


Posted Date: 10/17/2012 1:42:54 AM | Location : United States

Related Discussions:- Conditions-name condition, Assignment Help, Ask Question on Conditions-name condition, Get Answer, Expert's Help, Conditions-name condition Discussions

Write discussion on Conditions-name condition
Your posts are moderated
Related Questions
Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

Environment Division: The Environment Division is the second division in the COBOL source program. It is mainly machine-dependent . The computer and all the peripheral dev

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an

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

Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic

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:

ADD and SUBTRACT CORRESPONDING: The CORRESPONDING option can also used with the ADD and SUBTRACT verbs. The following are some of the formats of these verbs with the CORRESPON

Illustration of Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,