If you're looking for MainFrames Interview Questions for Experienced or Freshers, you are in right place. There are a lot of opportunities from many reputed companies in the world. According to research MainFrames has a market share of about 1.8%. So, You still have the opportunity to move ahead in your career as MainFrames Developer. Mindmajix offers Advanced MainFrames Interview Questions 2019 that helps you in cracking your interview & acquire a dream career as MainFrames Developer.
Mainframe interview Questions and Answers
Q1) Define DRDA?
Ans: DRDA means Distributed Relational Database Architecture. It is a connection protocol that is used for local database processing. IBM and other vendor databases use it. It contains a set of rules which is used for communication between an application and a DBMS distant relation.
Q2) Define WHERE and its usage?
Ans: The clause "WHERE" isolates a row or an element during the usage of a related system.
Q3) Define how the LIKE table could be created?
Ans: The usage of the LIKE parameter could create the LIKE table by the CREATE statement. These tables are usually required during the testing of the production environment.
Q4) Define the necessity of runstats among the environment test?
Ans: It is used for the clearing of the different values of the catalog columns. Since this column is already equipped with default values, the end result may not be as expected.
Q5) What is the utilization of Linkage area in COBOL?
Ans: Linkage area is utilized as a part of COBOL if the program needs to speak with JCL by means of PARM parameter or program needs to speak with another program.
Q6) What is the utilization of COPYBOOK in COBOL? Would we be able to utilize a similar?
COPYBOOK for various records in a similar program?
Ans: COPYBOOK spares the format of any record and uses a similar design over any program. Indeed, we can elude the same copybook for various documents if the format is same and REPLACING choice is to be utilized alongside COPYBOOK for that.
Q7) What is the distinction between INCLUDE and COPY?
Ans: A minimal distinction is there in the way they work. They both help to extend design in a program. The central contrast is INCLUDE gets extended at PRE-COMPILATION organize itself and is the motivation behind why all DCLGEN individuals are extended utilizing INCLUDE.
Q8) How to characterize tables in COBOL?
Ans: Happens condition is utilized to characterize tables or exhibits in COBOL. Table components can be eluded by utilizing either SUBSCRIPT or INDEX.
Q9) How do COMP fields help in COBOL?
Ans: COMP fields, for the most part, utilized for ideal utilization of room and for speed handling of arithmetic activities.
Q10) Where do you utilize 88 level things in COBOL?
Ans: 88 levels are uncommonly implied for restrictive factors and take choices in view of specific conditions in a program. We can utilize SET to dole out an incentive to 88 level variables.
Q11) Can we move the Alphanumeric incentive to the Numeric field?
Ans: Indeed, we can move, and it won't make any issue as long it is just a MOVE statement. But the program may bomb some of the time in case the field is in utilized as a part of number-crunching computations.
Q12) How EVALUATE helps in COBOL?
Ans: Assess is utilized as a part of restrictive preparing, and it disentangles the way we compose IF – ELSE explanations.
Q13) How to distinguish whether a CALL proclamation is a STATIC or DYNAMIC call?
Subscribe to our youtube channel to get new updates..!
Ans: On the off chance that the program name is eluded explicitly in the CALL articulation then it is considered as a Static call and if a working stockpiling variable alludes in the CALL explanation then it is considered as a Dynamic call.
Q14) How TEST BEFORE/AFTER works with PERFORM UNTIL explanation in COBOL?
Ans: With TEST AFTER, Perform articulations are handled and after that conditions are checked. With TEST BEFORE, Condition is checked first, and afterward in light of the outcome Perform explanations are prepared.
Q15) When is INSPECT verb is utilized as a part of COBOL?
Ans: Investigate is utilized to know the number of times a particular character happens or to supplant some bit of information.
Q16) How the number of juggling tasks is performed in COBOL?
Ans: We can do a wide range of number juggling activities in COBOL.
Q17) State the difference between GOBACK, STOP RUN and EXIT PROGRAM in COBOL?
Ans: The fundamental differences between GOBACK, STOP RUN, and EXIT PROGRAM in COBOL are:
- GOBACK returns control to the calling program
- STOP RUN stops the present work unit and returns control to OS
- EXIT PROGRAM is utilized to leave a program that has been called by another program
Q18) What is the contrast between Delimited by Space and Delimited by Size?
Ans: In delimited by Space, Space is considered as a delimiter. In delimited by measure, add up to the size of information thing is considered as a delimiter.
Q19) Define COMP - 3 fields and their utilization?
Ans: COMP-3 is a pressed decimal portrayal of information and is utilized to spare space.
Q20) Can the values of alphanumeric be moved to variable numeric?
Ans: Truly, it can be done. May confront particular information case (S0C7) blunder in the event that if the field is utilized as a part of any computation. This data answers COBOL inquiries questions identified with information development of various sort of factors.
Q21) Define INSPECT along with its utilization?
Ans: Investigate is a characterized COBOL verb, and it is utilized to discover number per times a specific string or character shows up or to supplant some segment of any information thing. For finish data on the best way of working with INSPECT and COBOL inquiries on INSPECT in COBOL,
Q22) Can we utilize Min or Max along with the alphanumeric information?
Ans: Yes, MAX or MIN can be utilized with alphanumeric information.
Q23) How to discover when COBOL program was gathered?
Ans: We can discover by utilizing WHEN-COMPILED work or via looking through the library LOAD. There is a characterized work in COBOL that can be utilized to discover the arrangement of the date and the time of any given program. The capacity is utilized during WHEN-COMPILED while it returns the 21 characters.
Technique division proclamation:
Show 'PROGRAM COMPILED ON FUNCTION WHEN-COMPILED
PROGRAM COMPILED ON 2013122412433857+0000
This data answers COBOL inquiries questions identified with program assemblage.
Q24) Define the procedure to pass an incentive from JCL to COBOL?
Ans: We can go by utilizing RETURN-CODE.
There’s a characterized word RETURN-CODE in COBOL that can be utilized to pass information from the program to the JCL. This is particularly valuable when some particular return code is accounted for in an occupation. Typically the activity returns 0 or 4 or in some cases 8 or 12 return code if any irregularity happens. This can be changed by utilizing RETURN-CODE of the program. This data answers COBOL inquiries questions identified with passing information from COBOL to JCL.
Q25) Define DELIMITED BY SPACE and DELIMITED BY SIZE along with their utilization?
Ans: DELIMITED BY SPACE or DELIMITED BY SIZE will be utilized alongside the STRING for controlling the information in case it is replicated.
- DELIMITED BY SIZE: Total size of information things would be considered as the delimiter,
- DELIMITED BY SPACE: Space would be considered as the delimiter
Q26) What are the situations which can bring about an Infinite circle by utilizing PERFORM?
Ans: With PERFORM TIMES and PERFORM UNTIL a large circle can be created.
Q27) Define the utilization of TEST BEFORE as well as TEST AFTER in the PERFORM explanations?
Ans: TEST BEFORE and TEST AFTER are utilized to characterize when the condition to be checked.
Q28) Define deadlock in DB2?
Ans: When there is an independent process that gets contended for the same or reserved resource of one another, that is when it is called deadlock. The SQL codes for deadlock are -911 and the -913.
Q29) Define the function of the DBCTL?
Ans: DBCTL is used for accessing the IMS filed for the CICS transactions, and they are fixed in the DBTCL for accessing files. Now in case, it is an IMS call that is generated by the CICS programs, then the processing is transferred to be carried by the DBCTL and a reply is sent as an outcome.
Q30) Differentiate Between HDAM and the HIDAM databases?
Ans: HIDAM is a separated index file that is based on the segmented root. The HIDAM is equipped with the information of the pointers that are based on the marks of the position of the data. While on the other hand, the HDAM has separated index files, but, all the key fields of the very records that are passed through a random which places the records of a particular position of the databases.
Q31) Clarify bolt dispute?
Ans: The DBD enables passage to one question at a specific time. Bolt conflict is said to happen when in excess of one protest looks for consent for execution at the same time.
Q32) Define SPUFI?
Ans: SPUFI is an abridged-type of SQL Processing Using File Input. It's a menu-driven instrument which the designer uses for making objects in the database.
Q33) Define Alias?
Ans: It is auxiliary to an equivalent word. Nom de plumes are produced for appropriated situations in order to maintain a strategic distance from the utilization of area frontrunner of a view or table. It isn't released when the table is erased.
Q34) Define the place of a VSAM KSDS?
Ans: The place of a VSAM is in the BSDS.
Q35) Name and clarify the sort of locks?
Ans: Typically, there are 3 sorts of LOCKS in particular:
- Shared – This sort of bolt allows at least two projects to peruse from the bolted space, however, does not enable them to transform it.
- Refresh – This bolt is more indulgent. It allows the program to peruse and change the bolted space.
- Selective – This bolt confines all clients from getting to the bolted space.
Q36) Clarify confinement level?
Ans: Confinement level is how much the initiation assembles in the center if it is disconnected from the actuation bunches executing in the meantime.
Q37) Define NOTCAT2?
Ans: It remains a VMS note that demonstrates the nearness of a copy inventory in the database. This issue can be settled by evacuating one of the passages and after that including another one.
Q38) What will happen if both STEPLIB and JOBLIB are determined?
Ans: JOBLIB is a Data Definition proclamation. It decides the area of the database, which is called the EXEC articulation. JOBLIB is applicable to all means introduce in that entire employment. It isn't conceivable to utilize it for detailed methodology. STEPLIB is fundamentally the same as JOBLIB. It decides the dataset within which this program exists. It applies to just one stage, not the total employment. STEPLIB could be utilized in any situation in the action step and also can likewise be utilized for detailed methodology.
In a circumstance when both the STEPLIB and JOBLIB are indicated, the JOBLIB will be overlooked by the framework.
Q39) Express the distinction between JES2 and JES3?
Ans: In the JES3, the distribution of informational indexes for the means happens prior to the activity is planned for executing. While in the JES2, this assignment happens prior to the execution of each progression.
Q40) Express all of the OPEN file modes?
Ans: The 4 File Open strategies are:
Q41) Is the request of the WHEN clause critical in an EVALUATE proclamation?
Ans: Truly, the request is critical as the assessment happens in the through and through way and, hence, the request has a vast effect on the assurance of results.
Q42) At what point are extension eliminators mandatory?
Ans: They are obligatory for EVALUATE articulations along with the in-line PERFORMS. Extension eliminators are announced continuously unequivocally to enhance intelligibility.
Q43) Define linkage segment?
Ans: It is a piece of the program which is being called and also maps to information things in the program's (calling) working stockpiling. Linkage Sections are the places where shared things are pronounced and characterized.
Q44) Define NEXT SENTENCE and the CONTINUE unique?
Ans: The NEXT SENTENCE handles the stream of control into the statement that takes the following time frame. Then again, CONTINUE handles the stream of control of the following articulation after the extension eliminator.