| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| I have two sequential files, FILE-1 and FILE-2.
FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns
(C,D,E).I want an output file, FILE-3 which has all five
columns with duplicates eliminated from column A.
| | 1 |
| Minimum how many Number of Paragraphs are there in ID-
Divison? | IBM | 6 |
| How to use the same cobol program in Batch and CICS
onlines ? Please expalin with an example. Thanks in advance. | | 1 |
| level number 77 is used to define
a)group data
b)elementary data
c)redefine
d)none | TCS | 6 |
| What should be the sorting order for SEARCH ALL? | | 3 |
| PERFORM ACCUMULATE-TOTALS
VARYING A FROM 1 BY 2 UNTIL A >2
AFTER B FROM1 BY 1 UNTIL B>2
AFTER C FROM 2 BY -1 UNTIL C<2
How many times the paragraph ACCUMULATE-TOTALS would be
exicuted?
| TCS | 5 |
| If my file contains 100,000 records and job abended at
55,000th records processing then how can i restart job from
that record onward by ignoring that record. I can not edit
the file as file size is big and it is getting browse
substituted?
| TCS | 2 |
| What does MAXCC 3 means? It is used in one my codes. | Wipro | 1 |
| 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 |
| Study the DATA DIVISION entries and the three PROCEDURE
DIVISION entries
given below:
01 END-OF-FILE-SWITCH PIC XXX.
88 NO-MORE-RECS VALUE "YES".
88 MORE-RECS VALUE "NO".
(i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS.
(ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA.
(iii) IF NO-MORE-RECS GO TO LAST-PARA.
Which are wrong?
(a) (i) and (ii)
(b) (ii) and (iii)
(c) (i) and (iii)
(d) all
| TCS | 2 |
| 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 |
| if i am reading a file with some 50000 records and moving to
a DB2 table and suddenly the program abends in between, is
there anyway i could restart from the exact record at which
the job failed once the program restarts. | UST | 2 |
| perform I from 0 by 1 until I=5?How maney times it will
executes | | 7 |
| What is level 66 used for ? | | 2 |
| What is different between variable length and fixed length? | TCS | 2 |
| What is the significance of the PROGRAM-ID paragraph? If
this name doesnt match with the name of the COBOL program,
does it make a difference? Is the name specified in the
PROGRAM-ID paragraph used as a name for the load module or
any such thing? | IBM | 4 |
| How to retain the Duplicates in the one records? | CS | 3 |
| how to transfer the file from pc to mainframe?? | | 2 |
| how we can edit records in vsam data set and non vsam data
sets | ACS | 2 |
| 1.Can we define condition-name conditions in FD entry. | | 9 |
| |
| For more COBOL Interview Questions Click Here |