Mainframe Interveiw question and answers | cobol Interview Question and answers
Hi welcome to Mainframe section Today i would like to share Cobol related interview question and answers.
Hi welcome to Mainframe section Today i would like to share Cobol related interview question and answers.
![]() |
What
is COBOL Explain?
| |
COBOL stands for Common
Business Oriented Language. It is a highlevel programming language first developed by CODASYL Committee (Conference on Data Systems Languages) in 1960. Since
then, the responsibility for developing new COBOL standards has been assumed by
American National Standards Institute (ANSI).
COBOL is designed for developing business, typically file-oriented,
applications. It is not designed for writing the system programs. For instance you
would not develop an operating system or compiler using COBOL.
| ||
![]() |
Which
is First Executable Statement in COBOL ?
| |
| ||
![]() | ||
![]() | ||
| ||
![]() |
What
are Literals ? How many types of Literals are there ?
| |
|
A literal is a data-item that consists only of the data-item value
itself. It's value remains unchanged throughout execution of the
program.
Types of Literals:
| |
![]() | ||
![]() | ||
| ||
![]() |
What
are the Divisions Available in The COBOL?
| |
![]() |
||
![]() | ||
executed. | ||
![]() | ||
![]() | ||
it and writing the Output. | ||
The above four divisions must appear in same order in a COBOL programs. | ||
| ||
![]() |
Define Paragraphs in Identification Division?
| |
| ||
There are seven paragraphs in identification division of which only
one is mandatory and other six are optional paragraphs.
| ||
![]() | ||
that particular program | ||
![]() | ||
![]() | ||
![]() | ||
execution. | ||
![]() | ||
![]() | ||
| ||
![]() |
Define Sections in Environment Division?
|
|
| ||
![]() | ||
1) Source Computer - It specifies the computer on which the source program has to be | ||
compiled. | ||
2)Object Computer - It specifies the computer for which the object program has been | ||
designated. | ||
![]() | ||
1) File Control - In this paragraph a file name is selected to be used in the program and is then | ||
assigned to a device. | ||
2) I-O Control - It provides information needed for efficient conveyance of data between the | ||
COBOL program and External File. | ||
| ||
![]() |
Define Sections in the Data Division?
|
|
![]() | ||
output or temporary files for sort/merge. | ||
![]() |
||
![]() |
||
programs. | ||
|
||
![]() |
What
are Data-Names?
|
|
|
||
They are nothing but memory locations. They have to be described in Data
Division so that they can be used in Procedure Division.
|
||
|
||
![]() |
What
are the Different Levels Available in the COBOL?
|
|
|
||
01-49 - Group or Elementary items | ||
66 - Renames Clauses | ||
77 - Independent Elementary data item | ||
88 - Condition Names | ||
| ||
![]() |
What
are Group and Elementary Items?
|
|
|
||
A Group item is declared using a data name and a level number. It
cannot have a picture clause. If it is highest item in a data
hierarchy then, it is known as a record.
| ||
An Elementary item is used to describe data items. It consists of data name, level number and picture clause. | ||
![]() |
Why
do we Debug Explain?
|
|
![]() ![]() ![]() ![]() |
||
![]() |
What
are Two Basic Steps Involved in Debugging?
|
|
|
||
![]() |
||
![]() |
||
|
||
![]() |
What are the Command Abend Codes ? | |
![]() ![]() |
||
Common reasons for SOC7 | ||
![]() |
||
![]() |
||
- COMPUTE, ADD, SUBTRACT, MULTIPLY, DIVIDE | ||
- MOVE, SET | ||
- IF, WHEN, EVALUATE | ||
Common reasons for SOC4 | ||
![]() |
||
![]() |
||
![]() |
||
|
![]() |
|
|
||
![]() |
What is Difference Between COMP and COMP-3 ? | |
COMP is used for the Binary Representation. It allows S and 9. | ||
![]() | ||
![]() | ||
![]() |
||
|
|
COMP-3 is used for the Packed Decimal values. It allows S, 9 and V. This is mainly used for Decimal |
Calculation Values. | ||
|
|
![]() |
|
|
![]() |
ConversionConversion EmoticonEmoticon