| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What are the different data types available in COBOL? | | 1 |
| Determine the total no of bytes in the following.
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999. | | 11 |
| what is the size of W-REC in the following
01 W-REC
05 A PIC 9(4)V99
05 B READLINES A
10 C PIC XX
10 D PIC S9(4)
05 E OCCURS 7 PIC ZZ.ZZ
05 F OCCURS 5
10 G PIC ZZ.ZZZ99
10 H OCCURS 3
15 J PIC 9(3)
15 K PIC V99
| TCS | 1 |
| COMP field occupy ? | | 2 |
| How to resolve the soc4 & soc7
other than following answers.
Soc4 can resolved using mispleed dd name and dd name is not
matching with file
and soc7 check the sysdump and copy the offest address then
correct it in the program. | TCS | 8 |
| How to resolve the soc4 and soc7 errors? | | 4 |
| How do you come out of an EVALUATE statement? | | 3 |
| what are the limitations of Inline Perform? | Zensar | 3 |
| I have a sequential file. How do I access a record in this
sequential file randomly in my program ? | Xansa | 5 |
| Explain about Redefines cluse? | iGate | 3 |
| Have you code any new programs in COBOL ? What is the
functionality of the programs? | Xansa | 2 |
| How do you define a variable of COMP-1? COMP-2? | | 1 |
| What is a subscript ? | | 2 |
| What is file status 92? | | 2 |
| How to read records from flat file in reverse order through
COBOL program? | Polaris | 4 |
| 1) can we display the index? | IBM | 2 |
| The following entries appear in the WORKING-STORAGE SECTION:
01 DATE-TODAY.
05 YY PIC XX VALUE "90".
05 MM PIC XX VALUE "12".
05 DD PIC XX VALUE :31".
01 DATE-EDIT PIC XX/XX/XX.
MOVE DATE-TODAY TO DATE-EDIT.
(a) 901231
(b) 90/12/31
(c) 31/12/90
(d) 311290
| TCS | 3 |
| What is the meaning of 'Eject' verb in cobol?
| Wipro | 2 |
| how to transfer the file from pc to mainframe?? | | 2 |
| study the data discriptions and answer the questions given below
i)01 ORDER RECORD
05 OUT-HEADER PIC X(50)
05 ITEM-COUNT PIC 99
05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
ON ITEM-COUNT
ii)01 NAME-AND-ADDRESS
05 N-AND-A-LINE OCCURES 5
05 LINE-LENGTH PIC P9
05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
LINE-LENGTH
iii)01 SALES-LIST
05 SALESMAN-COUNT PIC 99
05 SALES PIC 9(6) OCCURS 1 TO 100
DEPENDING ON
SALESMAN-COUNT
iv)01 ORDER-RECORD
05 NO-OF-BRANDS PIC 99
05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
NO-OF-BRANDS
which of the following is true?
a.i) and iii) are valid
b.i) and iv) are valid
c.i) and iii) are not valid
d.all are valid
| TCS | 4 |
| |
| For more COBOL Interview Questions Click Here |