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
CLASS CONDITION:   The class condition establishes whether or not the value of the operand is numeric or alphabetic. The operand is numeric if it contains only the digits 0 t

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

CLOSE statement: The simplified syntax of the CLOSE statement is as shown below:   CLOSE          file-name-1   [WITH   LOCK   ]                         [  , file-

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

FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

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

INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

DELETE STATEMENT: The format of the delete statement is as shown below: DELETE   file-name RECORD   [  ;   INVALID   KEY  imperative-statement  ] Whenever the ACCESS MOD

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb