Conditions-name condition, COBOL Programming

CONDITIONS-NAME CONDITION:

 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.

1419_CONDITIONS-NAME CONDITION.png

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
.(Period or Decimal Point) : The period may be used to insert a decimal point and may not come into view more than once. Both the period and V cannot appear in similar picture

Second form of Divide verb: The second form of this verb is as shown below: In this situation the identifier-1 or numeric- literal-1 will be divided by identifier-2 or

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

PROGRAM FOR MOVE CORRESPONDING: We have to write a simple program to demonstrate Move Corresponding. identification division.   program- id.   environment division.

PROGRAM FOR COMPUTE VERB: We have to write an easy program to elaborate the COMPUTE verb.  Identification division. Program- id. compverb. Environment division. Da

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.

STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

Illustration of nested if statement: Consider the nested sentence which is as shown below: The IF-ELSE pairs in this sentence can be detected by applying the rule whic

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements