Introduction
Mainframe computers are now considered legacy technology as these first came into existence in the early 1950s. These days mainframe computers have become sophisticated and powerful in handling extensive calculations and data processing. While appearing for an interview, you will require in-depth knowledge of Mainframe Interview Questions.
This article covers some of the most frequently asked Mainframe interview questions and answers. The aim is to get you comfortable with the most important questions so that you sail through the interview flawlessly.

Mainframe Interview Questions for Freshers
This section will get the basic mainframe interview questions to build a solid foundation. This section is crucial since it establishes a strong base.
1. What are mainframe computers?
Ans: Mainframe computers are large refrigerator-sized computers used primarily by big organisations for complex calculations and extensive data computation. These computers consist of different processors and RAM and handle data on the scale of petabytes.
2. What do you mean by mainframe testing?
Ans: It refers to the testing of computer code services and applications. Mainframe testing aims to secure the performance, dependability and quality of software application and service by verification and validation methods and see if it is ready to deploy.
3. Name the various attributes of mainframe computing.
Ans: Among the many characteristics of mainframe computing are:
-
High processing speed: Mainframes can process huge amounts of data quickly. This is because of their potent processors, abundant memory, and effective I/O systems.
-
High availability: Mainframes are made to be extremely available, which entails little to no downtime over extended periods of time. For companies that depend on mainframes for crucial applications, this is significant.
-
Mainframes can be scaled up or down to accommodate a business's changing demands. To achieve this, you can add or remove CPUs, memory, and storage.
- Security: Mainframes have protections that safeguard data from unauthorised access, modification, and destruction. They are very secure systems.
4. What is COBOL?
Ans: It is the abbreviation for Common Business Oriented Language. It is a procedural, object-oriented and imperative language. Governments and companies use it for administrative and business purposes.
5. What do you mean by spool?
Ans: Spool extends to Simultaneous Peripheral Operations On-Line. It is a buffering mechanism in which data is temporarily stored to be used and executed–spooling works in a way that collects data, processes and instructions from numerous sources for execution later on.
6. What is DRDA?
Ans: DRDA is the abbreviation for Distributed Relational Database Architecture. It is a connection protocol for RDBMS processing. IBM and other vendors use DRDA. It contains rules for communication between a remote RDBMS and the application.
7. What is an UPDATE cursor?
Ans: UPDATE cursor allows us to delete or modify the currently selected row. The UPDATE keyword lets the server know it will alter the fetched row.
8. Explain the use of WHERE?
Ans: The “WHERE” clause separates an element or row whenever used with a relational statement.
Example :
SELECT EMPNO then FROM EMP;
WHERE PROJECT IS NULL;
9. What is JCL?
Ans: JCL or Job Control Language, this language controls jobs. On the IBM mainframe operating system, a scripting language called JCL is used to give instructions to the system for a batch process. It is a collection of instructions you program to inform the operating system of the action you wish to take.
10. What are the types of JCL statements?
Ans: There are three types of JCL statements:
→ Work unit identifying statements that identify work to be done by the Operating System.
→ EXEC statement, which depends on the number of stages involved in running a job.
→ Data Definition statements are meant to identify input and output data sets.
11. Name the different types of Table spaces?
Ans: There are multiple types of tablespaces:
-
A basic table space is one that is not split or divided into sections. It is the most basic kind of table area and is frequently utilised for little tables.
-
Table space that has been partitioned: A partitioned table space has two or more partitions. A separate disc or disc drive can be used to store each partition. Performance and availability can be increased by using partitioned table spaces.
- Table space separated into two or more segments is referred to as a segmented table space. Data from one or more tables may be included in each segment. To increase efficiency and make better use of available space, segmented table areas might be used.
12. How is the LIKE table created?
Ans: The table is created by using the CREATE method and using the like parameter. These tables are generally used for testing purposes.
13. Name the divisions in a COBOL project?
Ans: Identification, environment, data, and procedure are the four divisions in a COBOL project.
14. What is a foreign key?
Ans: A foreign key is the reference of the primary key of another table. It helps to establish a relationship between two tables.

15. What is a deadlock in DB2?
Ans: When two autonomous processes compete for the same resource or the resources reserved by one another, it is called a deadlock. -911 and -913 are the SQL code for a deadlock.
16. What is the use of DBCTL?
Ans: The DBCTL region is like the IMS Transaction Manager without the support for terminals or message queues. It is used to access IMS files for CICS Transactions and their address space. The DBCTL environment has only IMS DB installed.
17. Explain referential integrity?
Ans: It is a property of data stating that all its references are valid. Relational databases need that if a value of one attribute of a relation references a value of another attribute, then the referenced value must exist.
18. What is lock contention?
Ans: Lock contention is when more than one object aims to get executed simultaneously as DBD permits admission to one thing at a particular time. It occurs when one process or thread tries to obtain a lock held by another.
19. What is a Database Descriptor?
Ans: Database Descriptor (DBD) restricts access to the database whenever an object is created, modified or deleted.
20. What is the use of the linkage section?
Ans: The linkage section allows the insertion of data from outside the program. Either it is part of the parameter in JCL or called from another program. All data is passed through the linkage section only.
21. What is an alias?
Ans: It is an alternate name for database objects. You can say it acts as the nickname of DB objects. Alias is defined for the objects to make their name brief, thereby diminishing the query size and increasing the readability of the query.
22. What is the difference between dynamic SQL and static SQL?
Ans: An SQL statement can be created and executed dynamically at runtime. This implies that the statement could be altered depending on input from the user or other factors. Applications that need to be flexible and adaptable frequently use dynamic SQL.
A sort of SQL statement that is hard-coded into an application is known as static SQL. As a result, the statement cannot be altered during execution. Applications where performance is crucial frequently utilise static SQL since the database optimizer can precompile and optimise the statement.
23. How dynamic and static linking is achieved?
Ans: Dynamic linking reduces total resource consumption and automatically ships bug fixes and improvements. Static linking allows code to run in limited environments, making binaries easy to distribute to diverse user environments.