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
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:

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 :

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

Write a COBOL IF sentence to use the values of numeric variables EXAM and COURSEWORK , both assumed to be with format PIC 999 and in the range 0 to 100 and to move the value:

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

Direct Organization: Besides the relative or indexed organization, also a direct access file can be designed to have what is termed as direct organization.  In this organizati

Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil