{"id":8581,"date":"2023-11-20T05:03:00","date_gmt":"2023-11-19T23:33:00","guid":{"rendered":"https:\/\/www.monsterindia.com\/career-advice\/20-mainframe-interview-questions-you-cannot-ignore-8581\/"},"modified":"2023-11-20T18:01:37","modified_gmt":"2023-11-20T12:31:37","slug":"20-mainframe-interview-questions-you-cannot-ignore","status":"publish","type":"post","link":"https:\/\/www.foundit.in\/career-advice\/20-mainframe-interview-questions-you-cannot-ignore\/","title":{"rendered":"20 Mainframe Interview Questions and Answers"},"content":{"rendered":"\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><\/span><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">If you are looking to advance your career as a <strong><a href=\"https:\/\/www.foundit.in\/search\/mainframe-developer-jobs\" target=\"_blank\" rel=\"noopener\" title=\"Mainframe Developer\">Mainframe Developer<\/a><\/strong>, opportunities are numerous. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">If you are here looking for help to prepare for your next Mainframe interview, you are at the right place. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Below are the top 20 Mainframe interview questions that are most commonly asked in Mainframe interview. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q1. What is DRDA?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">DRDA stands for Distributed Relational Database Architecture. It works as a connection protocol for local database processing. Database vendors like IBM use it. This architecture contains a set of rules that helps communicate between any application and database relation. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q2. What is the function of the clause WHERE in mainframe programming?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">While working with a relational database system, the clause \u201cWHERE\u201d isolates an element or a row. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q3. Explain how the LIKE table can be created?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">You can use the LIKE parameter and the CREATE statement to create the LIKE table. These tables are needed during the testing phase of the production environment. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q4. How is runstats used in environment testing?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">The catalog columns are filled with default values and the end result during environment testing may not produce accurate results. Runstats is used to clear the default values of these columns. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q5. Explain the function of Linkage Area in COBOL<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">If a COBOL program needs to speak with a JCL or another program through the PARM parameter, Linkage Area is used. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q6. What is a COPYBOOK in COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">COPYBOOK stores the format of any record and uses the same design for another program. We can use the same COPYBOOK for a number of documents using the REPLACING choice if the format is the same. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q7. Differentiate between INCLUDE and COPY<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">INCLUDE and COPY are different in the way they work. They are used for extension of design in a program. The main difference is that INCLUDE is used for expanding at a pre-compiler time whereas COPY is used for expanding at a compiler time. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q8. What are Foreign Keys?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Foreign keys are attributes of a particular table that have matching entries to the primary key in another table. Foreign keys are used to build a relation between any two tables. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q9. What do you mean by self-referencing constraint?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Self-referencing constraint is used to restrict the changes that can be made to the primary key through a foreign key. To implement this, the foreign key must define the DELETE CASCADE rule. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q10. What is meant by deadlock in DB2?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">When two separate processes are fighting for the same resources, or the resource reserved for each other, the situation is called a deadlock. SQL code for a deadlock are -911 and -913. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q11. Differentiate between Type 1 and Type 2 indexes<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">In Type 2 index, the data pages get locked but index pages are not locked. In Type 1 index, the index pages are locked. Type 2 index is quicker than Type 1 index. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q12. Name the different Table spaces<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">The three Table spaces are Simple, Segmented and Partitioned Table spaces. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q13. How are HIDAM and HDAM databases different?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">HIDAM has its separate index file based on the root segment. This file stores information about the pointer that denotes the position of data. Whereas, HDAM does not have a separate index file. The key field of each record is accessed through a randomizer that positions the record in the correct place in the database. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q14. What is referential integrity?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Referential integrity rule states that consistency needs to be maintained between primary and foreign keys. In other words, each foreign key needs to have a primary key. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q15. What is the difference between multiple index and composite index?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Multiple indexes consist of 2 indexes, one for each table column. The composite index is just one index that consists of joint values of 2 columns of the table. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q16. What are the differences between GOBACK, STOPRUN and EXIT PROGRAM in COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">The main differences between GOBACK, STOPRUN and EXIT PROGRAM in COBOL are: <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">GOBACK gives control back to the calling program. <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">STOPRUN stops current work execution to return control to the operating system. <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">EXIT PROGRAM is used to quit a program and allow another program to pursue. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q17. What is the benefit of De-normalizing tables in DB 2?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Denormalizing reduces the necessity of executing various relational joins. It also reduces the requirement of foreign keys. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q18. Explain Database Descriptor<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Database Descriptor or DBD provides restricted access to the database when an object gets created, altered or dropped. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q19. Explain delete-connected tables<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Tables whose relation is established through a foreign key are called delete-connected tables. Whenever a primary key is deleted, the foreign key in the corresponding table is also impacted. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Q20. What are the different types of Locks?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">There are mainly three types of locks. They are: <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Shared Lock- This type of lock allows more than one program to read from locked part but not change it. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Update Lock- This lock allows the program to both read and change the data in the locked area. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Exclusive Lock- This Lock is restricted and does not allow any program to even access the locked space.<\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>More Resources:<\/strong> <\/span><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/ips-interview-questions-and-answers\/\" target=\"_blank\" rel=\"noopener\" title=\"\">&nbsp;IPS Interview Questions and Answers<\/a><\/strong><\/td><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/top-10-tricky-hibernate-interview-questions-that-you-should-know\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Hibernate Interview Questions and Answers<\/a><\/strong><\/td><\/tr><tr><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/6-wipro-hr-interview-questions-you-need-to-nail\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Wipro HR Interview Questions and Answers<\/a><\/strong><\/td><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/pwc-interview-questions-what-to-expect\/\" target=\"_blank\" rel=\"noopener\" title=\"\">PwC Interview Questions and Answers<\/a><\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you are looking to advance your career as a Mainframe Developer, opportunities are numerous. If you are here looking for help to prepare for your next Mainframe interview, you are at the right place. Below are the top 20 Mainframe interview questions that are most commonly asked in Mainframe interview. Q1. What is DRDA? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[147],"tags":[],"class_list":{"0":"post-8581","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-interview-questions"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/comments?post=8581"}],"version-history":[{"count":7,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8581\/revisions"}],"predecessor-version":[{"id":22731,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8581\/revisions\/22731"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/media\/8582"}],"wp:attachment":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/media?parent=8581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/categories?post=8581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/tags?post=8581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}