Negated simple condition, COBOL Programming

NEGATED SIMPLE CONDITION:

Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition is to reverse the value of the condition. It might be seen that the operator NOT can be used in 2 ways. In easy conditions it can be used as a part of the condition. It can also be used to precede an easy condition to make it a negated simple condition. An illustration of the first use may be DEPOSIT NOT LESS THAN 500.00 whereas an illustration of the second use is Not DEPOSIT LESS THAN 500.00. Of course, in this situation, both the circumstances mean the similar thing and can be used in either form. What is the role of the operator NOT. In the previous situation NOT is the part of a relational operator and in the latter case it is a logical operator. Although, NOT should not precede a simple condition which includes NOT as a part of it.

 

 

Posted Date: 10/17/2012 1:45:05 AM | Location : United States







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

Write discussion on Negated simple condition
Your posts are moderated
Related Questions
FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

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 If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

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

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

Introduction to MOVE Verb: The aim of this section is to introduce the learner how to move data from one place to the other place in the memory. This is completed with the help

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control