Find Interview Questions for Top Companies
Ques:- Without execution cobol program how to see output?How to rename input filename and outputfile name?3) Wat is flag?4) What is impact analysis what basis how will you write test cases?5) How you sea output of cics command?6) How are datasets concatenated ex
Asked In :-
Right Answer:
1. Without executing a COBOL program, you can see the output by reviewing the program's logic and the expected data flow, or by using a tool like a code analyzer or static code analysis tool.

2. To rename an input filename and output filename in COBOL, you can modify the `SELECT` statement in the Environment Division to specify the new filenames.

3. A flag is a variable used to indicate a condition or state, often used in control structures to determine the flow of execution.

4. Impact analysis is the process of assessing the effects of a change in a system. Test cases are written based on the areas affected by the change, focusing on functionality, performance, and integration points.

5. To see the output of a CICS command, you can use the CICS Transaction Gateway or CICS Explorer, which allows you to view the results of transactions and commands.

6. Datasets are concatenated in COBOL by specifying multiple dataset names in the `SELECT` statement,
Ques:- What is the difference between write & move in COBOL.?What is the meaning of 'TALLING' verb in cobol?What is the meaning of 'Eject' verb in cobol?
Asked In :-
Right Answer:
In COBOL, the difference between `WRITE` and `MOVE` is:

- `WRITE` is used to send data to a file or output device, creating a new record.
- `MOVE` is used to copy data from one variable to another within the program.

The `TALLYING` verb in COBOL is used to increment a counter variable each time a specified condition is met.

The `EJECT` verb in COBOL is used to advance the output to the next page when printing, typically in report generation.
Ques:- What is the difference between CI( CONTROL INTERVAL)and CA(CONTROL AREA). I refereed SAB A ZAMIR JCL book in that he said collection of CI is called CA but in next page (286) he explained this with showing one CI as a CA. Can you please let me know the di
Asked In :-
Right Answer:
A Control Interval (CI) is a fixed-length unit of storage within a dataset, while a Control Area (CA) is a collection of one or more CIs. The CA serves as a larger organizational unit for managing CIs, which can be used for efficient data access and storage management.
Ques:- Is more than one record description is allowed in a FD?Is NUMERIC EDIT fields can be used for Arithmatic operations?3) Is COMPUTE P,Q,W = A+ B/C -E ** 2 is a valid statement?4) Is LINKAGE SECTION is mandatory in a sub program?5) In edit fiels the characte
Asked In :-
Right Answer:
1) Yes, more than one record description is allowed in a File Description (FD).
2) No, NUMERIC EDIT fields cannot be used for arithmetic operations.
3) Yes, COMPUTE P,Q,W = A + B/C - E ** 2 is a valid statement.
4) No, the LINKAGE SECTION is not mandatory in a subprogram.
5) The question seems incomplete, please clarify regarding edit fields.
Ques:- Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?
Asked In :-
Right Answer:
No, the REDEFINES clause cannot have different picture clauses compared to the one it redefined; they must be compatible in terms of data type and size.
Ques:- How many dimensions does cobol have ?Why cobol is written in coding sheet?Why is the cobol program used?is it still in use?is it for business purpose?
Asked In :-
Right Answer:
COBOL has one dimension in terms of its data structure, but it can handle multi-dimensional arrays. COBOL is written on coding sheets for ease of organization and readability. COBOL programs are used for business applications, particularly in financial and administrative systems. Yes, COBOL is still in use today, especially in legacy systems within large organizations. It is primarily used for business purposes.
Ques:- Can we reverse the string in cobol ? See the following problem :77 NAME PIC X(10) VALUE 'MANOJ'77 SRNAME PIC X(10).I want JONAM in SRNAME.
Asked In :-
Right Answer:
Yes, you can reverse a string in COBOL. Here is a simple example to achieve that:

```cobol
IDENTIFICATION DIVISION.
PROGRAM-ID. ReverseString.

DATA DIVISION.
WORKING-STORAGE SECTION.
77 NAME PIC X(10) VALUE 'MANOJ'.
77 SRNAME PIC X(10).
77 I PIC 9(2).
77 TEMP PIC X(10).

PROCEDURE DIVISION.
MOVE SPACES TO SRNAME
PERFORM VARYING I FROM 1 BY 1 UNTIL I > 5
MOVE NAME(I:1) TO TEMP(I:1)
END-PERFORM
MOVE TEMP TO SRNAME
DISPLAY SRNAME
STOP RUN.
```

This code will store 'JONAM' in `SRNAME`.
Ques:- Deference between C'language and cobol.
Asked In :-
Right Answer:
C is a general-purpose programming language focused on system programming and performance, while COBOL is primarily designed for business applications, emphasizing readability and data processing.
Ques:- What is meant by abbend and what is the difference between abbend and error.when does and why dose it come.what are the types?
Asked In :-
Right Answer:
Abend, short for "abnormal end," refers to a situation where a program terminates unexpectedly due to a critical error. The difference between an abend and an error is that an abend indicates a program crash, while an error may refer to any issue that can be handled or resolved without crashing the program. Abends occur due to reasons like resource unavailability, invalid data, or coding mistakes. Types of abends include system abends, user abends, and application abends.
Ques:- What are the sections available in Data division in COBOL?
Right Answer:
The sections available in the Data Division in COBOL are:

1. **File Section**
2. **Working-Storage Section**
3. **Local-Storage Section**
4. **Linkage Section**
Ques:- How you can read the file from bottom?
Asked In :- vardhman textiles,
Right Answer:
In COBOL, you can read a file from the bottom by using a combination of reading the file sequentially to the end and then storing the records in an array or table. After reaching the end of the file, you can then process the records in reverse order from the array or table. Alternatively, if the file is small, you can read all records into an array and then iterate through the array in reverse.
Ques:- Can we fetch/ select in working storage section varibales directly without using the host variables?
Asked In :- adaptavist,
Right Answer:
No, you cannot fetch or select data into working storage section variables directly without using host variables in COBOL.
Ques:- Write a COBOL program for Matrix Addition?
Asked In :-
Right Answer:
```cobol
IDENTIFICATION DIVISION.
PROGRAM-ID. MatrixAddition.

ENVIRONMENT DIVISION.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 MatrixA.
05 RowA OCCURS 3 TIMES.
10 ColA OCCURS 3 TIMES PIC 9(2).
01 MatrixB.
05 RowB OCCURS 3 TIMES.
10 ColB OCCURS 3 TIMES PIC 9(2).
01 ResultMatrix.
05 RowR OCCURS 3 TIMES.
10 ColR OCCURS 3 TIMES PIC 9(2).
01 I PIC 9(2) VALUE 1.
01 J PIC 9(2) VALUE 1.

PROCEDURE DIVISION.
MAIN-LOGIC.
MOVE 1 TO I
Ques:- Explain me about Report Section.
Asked In :-
Right Answer:
The Report Section in COBOL is used to define the layout and formatting of the report output. It typically includes the following parts:

1. **Report Heading**: Contains titles and headings for the report.
2. **Detail Lines**: Specifies how each record will be displayed in the report.
3. **Footings**: Used for summary information, such as totals or counts at the end of the report.

This section helps in organizing the output for better readability and presentation.
Ques:- How to publish powerplay reports using PPES?Explain the steps??
Asked In :- IDP Education, wns,
Right Answer:
To publish PowerPlay reports using PowerPlay Enterprise Server (PPES), follow these steps:

1. **Open PowerPlay Studio**: Launch PowerPlay Studio and open the report you want to publish.

2. **Save the Report**: Ensure the report is saved in the appropriate format.

3. **Connect to PPES**: In PowerPlay Studio, connect to the PowerPlay Enterprise Server by selecting the server from the connection options.

4. **Select Publish Option**: Go to the 'File' menu and select 'Publish'.

5. **Configure Publishing Options**: Choose the destination folder on the PPES where you want to publish the report and set any necessary options (like access permissions).

6. **Publish the Report**: Click on the 'Publish' button to upload the report to the server.

7. **Verify Publication**: After publishing, verify that the report is available on the PPES by accessing it through the PowerPlay Web or the appropriate client interface.

8.
Ques:- What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)? ( applicable to onlyMVS/ESA Enterprise Server).
Asked In :- centenary bank,
Right Answer:
AMODE(24) allows a program to access memory in a 24-bit addressing mode, limiting it to 16 MB of addressable memory. AMODE(31) allows a program to access memory in a 31-bit addressing mode, enabling it to address up to 2 GB of memory. RMODE(24) restricts the program's memory to the lower 16 MB, while RMODE(ANY) allows the program to run in any memory region, including above the 16 MB limit.
Ques:- What is a scope terminator? Give examples.
Asked In :- workcover queensland,
Right Answer:
A scope terminator in COBOL is a keyword that indicates the end of a specific block of code or a scope. Examples of scope terminators include `END-IF`, `END-PERFORM`, and `END-SECTION`.
Comments
Maneesh Ingale Nov 13, 2021

A Scope Terminator, as the name suggests, it terminates the scope of something. A scope terminator ends a verb or statement. Scope terminators can be explicit or implicit.

In COBOL, scope terminators are optional, but used as a better coding practice.

Explicit scope terminators:

Explicit scope terminators end a verb without ending a sentence. They consist of END followed by a hyphen and the name of the verb being terminated, such as END-IF.

Example of Explicit scope terminator:

IF ITEM = "A"
DISPLAY "THE VALUE OF ITEM IS " ITEM
ADD 1 TO TOTAL
MOVE "C" TO ITEM
DISPLAY "THE VALUE OF ITEM IS NOW " ITEM
END-IF ---> IF statement end here

IF ITEM = "B"
ADD 2 TO TOTAL
END-IF ---> IF statement end here

Listed below some of the important explicit scope terminators.
END-ADD
END-PERFORM
END-ACCEPT
END-CALL
END-COMPUTE
END-DELETE
END-DISPLAY
END-DIVIDE
END-EVALUATE
END-IF
END-MULTIPLY
END-READ
END-RETURN
END-REWRITE
END-SEARCH
END-START
END-STRING
END-SUBTRACT
END-UNSTRING
END-WRITE

Implicit scope terminator:

An implicit scope terminator is a period (.) that ends the scope of all previous statements not yet ended.

Example:of Implicit scope terminator:

IF ITEM = "A"
DISPLAY "THE VALUE OF ITEM IS " ITEM
ADD 1 TO TOTAL
MOVE "C" TO ITEM
DISPLAY "THE VALUE OF ITEM IS NOW " ITEM. ---> IF statement end here

IF ITEM = "B"
ADD 2 TO TOTAL. ---> IF statement end here

Ques:- What is the difference between RETURN CODE & MAXCC CODE
Asked In :-
Right Answer:
RETURN CODE is a general term used to indicate the success or failure of a program or operation, while MAXCC CODE (Maximum Condition Code) specifically refers to the highest return code encountered during the execution of a batch job or a series of steps in a job.
Ques:- What is the maximum value that can be stored in S9(8) COMP?
Asked In :-
Right Answer:
The maximum value that can be stored in S9(8) COMP is 127.
Ques:- Why can't occurs clause be used at 01 level ?
Asked In :-
Right Answer:
The OCCURS clause cannot be used at the 01 level because the 01 level represents a single data item or record, while OCCURS is used to define an array or a group of items. The OCCURS clause is intended for use with 02 levels and below to create multiple occurrences of a data structure.


The COBOL category on takluu.com is designed for programmers, job seekers, and IT professionals interested in mastering this classic programming language. Despite being one of the oldest languages, COBOL remains crucial in many banking, insurance, and government systems that require reliable transaction processing.

This category covers core COBOL concepts such as data division, procedure division, file handling, report generation, and debugging techniques. You’ll also learn about COBOL’s syntax, structure, and how it integrates with modern systems.

COBOL interview questions typically focus on your understanding of legacy system maintenance, batch processing, and working with mainframes. Familiarity with COBOL can open doors to niche but highly rewarding job opportunities in organizations that still depend on this technology.

At Takluu, we provide easy-to-understand explanations, sample code snippets, and commonly asked interview questions to help you build confidence in COBOL programming. Whether you are new to COBOL or looking to refresh your skills, this category equips you to handle interviews and practical challenges effectively.

Learning COBOL is valuable for professionals aiming to work in sectors where robust, high-volume data processing is critical. With our resources, you’ll be prepared to succeed in your COBOL career journey.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users