| Other COBOL Interview Questions |
|| Asked @
|Is it possible to mutliply a comp variable with an comp-3
variable. Will there be any error if i do it?
|A paragraph PARA-X is to be executed when none of the data names
A, B and C have value of 1. Which of the following will
achieve this ?
(a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X
(B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X
(C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X
(C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
|i have the following varibles in the working storage
05 ws-A PIC X(30)
VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ '
05 WS-B REDEFINES WS-A
10 WS-B1 PIC X(10).
10 WS-B2 PIC 9(10).
10 WS-B3 PIC X(10).
If I Display B1, B2 and B3 respectively, what is the value
displayed in B2
|Can we move X(9) to 9(9). If yes what are the ways for
|I have a File that has duplicate records. I need only those records that occur more than
|what if any ,is the syntex error in the following piece of code
01 B PIC A(7)
02 C PIC 9(4)
ADD 10 TO C
a.the condition in the if statement is wrong
b.noting is wrong
c.because C is initialised.ADD 10 TO C is wrong
d.both B and C shoud have same size.
|How to pass return codes from cobol to jcl?
what should be my output ?
|I encountered an error when I move spaces to a numeric
field?What should I do to move spaces on that field?help
|what r the types of perform statement
|Which of the following characters is NOT valid in column 7?
|what are the isolation levels and where we use it in the db2
|For more COBOL Interview Questions Click Here |