Career Center
Interview NotesThis article provides Mainframe Interview Questions covering Cobol questions. For more Interview Questions / Answers related to Mainframe, click on links provided at the end of each question set.
COBOL
1. a) What is the difference between write and move in COBOL.?b) What is the meaning of 'TALLING' verb in Cobol? c) What is the meaning of 'Eject' verb in Cobol?
2. What are the two Cobol verbs that are used in data division?
3. 1) Without execution Cobol program how to see output? 2) How to rename input filename and outputfile name? 3) What is flag? 4) What is impact analysis what basis how will you write test cases? 5) How you see output of cics command? 6) How are datasets concatenated? Explain with example?
4. Suppose I have array of 10 elemnts in it how to acess 5 element from the array using supscript and index?
5. Can we execute the following statement move a,b to c,d.
6. I have a variable x(20), but I need the output in two ways 1.123000000000000000002. 123-----------------
7. How to remove the duplicate records present in a PS dataset using JCL?
8. Can Redefines clause be used at 01 level ?
9. What are the type of comp usage?
10. What is difference between comp and comp-4?
11. Can Redefines clause be used in File section, if yes at which level number ?
12. What is the maximum size of the variable length record?
13. In the example below 05 WS-VAR1 PIC X(5) 05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5). PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1. now what is the value of WS-VAR1 and WS-VAR2 ?
14. How to include system time and date in the report generation in Cobol programing?
15. How include time and date in the report generation in Cobol programing?
16. In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
17. Explain call by context by comparing it to other calls.
18. If you were passing a table via linkage, which is preferable - a subscript or an index?
19. What are the differences between COBOL and COBOL II?
20. What is an explicit scope terminator?
Click here for more Question and Answers : COBOL Interview Question and Answers