What are the different types of condition in cobol and write their forms.
Answer / Alka
In COBOL, conditions can be compared using various operators. Here are some common types of conditions and their forms:n
1. Equal (=): Compares if two variables have the same value.nEXAMPLE: IF NUM1 = NUM2 THEN ...n
2. Not equal (!=): Compares if two variables do not have the same value.nEXAMPLE: IF NUM1 != NUM2 THEN ...n
3. Greater than (>): Compares if one variable has a higher value than another.nEXAMPLE: IF AMOUNT > 500 THEN ...n
4. Less than (<): Compares if one variable has a lower value than another.nEXAMPLE: IF AGE < 18 THEN ...n
5. Greater than or equal to (>=): Compares if one variable is greater than or equal to another.nEXAMPLE: IF SALARY >= 3000 THEN ...n
6. Less than or equal to (<=): Compares if one variable is less than or equal to another.nEXAMPLE: IF AGE <= 25 THEN ...
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Static,Dynamic linking ?
how to resolve the file status 47.......
How to retrive the 9th records out of ten records using the cobol program ?
how we can edit records in vsam data set and non vsam data sets
i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..
What is the local-storage section?
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?
8 Answers Arigo Infotech, IBM,
What is the difference between Call and a Link?
TYPES OF SORTINGS. which is more prefarable.
What is the difference between SEARCH and SEARCH ALL?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
Why we should use cursor ?