| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| If A>B
next sentence
end-if
display 1
display 2.
display 3.
If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)
____________________________________
if a>b
continue
end-if
display 1
display 2.
display 3.
If a>b, it Will display 1 2 3 (the next statement)
____________________________________
if a>b
continue
display 1
end-if
display 2
display 3.
display 4.
If a>b, Will it display 2 3 4 (or) 1 2 3 4 ? | UST | 6 |
| how to submit a jcl by cobol program.
clear me with an example. | HCL | 1 |
| How do you do in-line PERFORM? | | 2 |
| We have 3 programms A,B,C.In the middle of the program A
the controls goes to program B and in the middle of the
program B control wants to go program C,after completion of
program C again control comes to program B and again after
completion of program B control comes to program A.How the
process will takes and what are the controls we use for
that process.If it is possible anybody of you explain with
example? | IBM | 4 |
| The hierarchy of the execution of logical operators is
(a) NOT AND OR
(b) AND OR NOT
(c) OR AND NOT
(d) OR NOT AND
| TCS | 8 |
| What is different between variable length and fixed length? | TCS | 2 |
| What is SET TO TRUE all about, anyway? | | 4 |
| How to read a record from bottom of a file which is
indexed by 'A'. | Oracle | 4 |
| How To move a value to an array using move verb? | IBM | 1 |
| what is the purpose of linkage section? | | 6 |
| How is sign stored in Packed Decimal fields and Zoned
Decimal fields? | TCS | 1 |
| What do you feel makes a good program? | | 1 |
| 1) can we display the index? | IBM | 2 |
| 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
| TCS | 3 |
| I have the requirement to compare the two files and pick up
the matching records.
File 1. file2
23 32
32 13
34 15
35 36
36 35
43
Get the matching records from this 2 files to out file. how
you will do this in cobol program? | RBS | 3 |
| How to read the last 100 records from a COBOL file. The file
contains N number of records. | IBM | 6 |
| I got user abend U4038 while compiling my runjcl..
can anyone help me? | | 8 |
| How do we get current date from system with century? | | 2 |
| I have one column say 'X' defined as VARCHAR
Can anyone tell me What are the different ways to update
this column thru COBOL-DB2 program? | | 4 |
| What is difference between comp & comp-4?
| | 5 |
| |
| For more COBOL Interview Questions Click Here |