| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning. | | 3 |
| Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is
| TCS | 7 |
| Explain complete concept of table handling in COBOL with an
example? | IBM | 2 |
| What will happen if we try to create GDG (+2) generaton
instead of (+1) generation? | | 1 |
| There is a production file which has millions of records in
it.The program that uses it ends up with an SOC7 abend.It
is sure that the abend is due to some invalid data in the
file.Is there any way to debugg the SOC7 abend with out
giving displays? I need the record which is cause for the
abend. | | 5 |
| consider the following piece of code
01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWENCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be
displayed by the statement
DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250
| TCS | 3 |
| How many sections are there in data division?. | | 3 |
| What will happen if you code GO BACK instead of STOP RUN in
a stand-alone COBOL program i.e. a program which is not
calling any other program ? | | 1 |
| How do you define a sort file in JCL that runs the COBOL
program? | Syntel | 2 |
| Give some advantages of REDEFINES clause? | | 1 |
| When is a scope terminator mandatory? | | 2 |
| What is wrong with the following data declaration?
01 W-DATE PIC X(6).
05 DD PIC 99.
05 MM PIC 99.
05 YY PIC 99.
(a) Nothing is wrong.
(b) Under W-DATE all level 05 items are having a PIC 99 but
level
01 has PIC X(6).
(c) PIC can't be specified for a group item.
(d) DD, MM, and YY are invalid datanames.
| TCS | 4 |
| 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
| TCS | 1 |
| What is the difference between NEXT SENTENCE and CONTINUE? | | 1 |
| How many maximum number of procedures can we write in one
COBOL program? | | 2 |
| How can i write a comp-3 variable into a sequential file
should i declara the field in the file description as comp-
3? | | 1 |
| What is 88 level used for ? | | 2 |
| How does IDMS insure data integrity? | | 1 |
| SIGN TRAILING SEPARATE field occupy ? | | 2 |
| can we use variable picture clause as xx.99 in cobol. | | 2 |
| |
| For more COBOL Interview Questions Click Here |