InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How do you avoid deadlocks while reading data in Mainframe? |
|
Answer» We can do the FOLLOWING STEPS in order to avoid deadlocks:
|
|
| 2. |
How do you pass incentives from JCL to COBOL? |
|
Answer» This can be done by making use of the RETURN-CODE keyword which can be used for PASSING information to the JCL from the COBOL program. We can use it for identifying the outcome of any OPERATION. Generally, the program ACTIVITY returns 0,4,8 or 12 in cases of success or IRREGULARITIES. We can change it by making use of this keyword which also ensures that the information is passed from COBOL to JCL. |
|
| 3. |
What are the different stages of processing a job? |
|
Answer» JCL is used for processing work by the z/OS system by defining which PROGRAM needs to be executed, what resources need to be allocated, etc. The description of work specified is called a job. z/OS system makes use of JES (Job Entry SUBSYSTEM) that receives jobs into the OS, schedules them and processes them, and controls their output. Following are the phases of job processing:
|
|
| 4. |
What are the differences between external and internal sort? What are their syntaxes? |
Answer»
|
|
| 5. |
How will you understand if your module is called statically or dynamically? |
|
Answer» We can understand it by looking at the LINKAGE editor output or from the LOAD module. In case the module is called dynamically, then that will not be part of the main module. If it is called, statically, then we can see the details of the module in the load module. There is one more type of module calling KNOWN as an IMPLICIT calling which identifies the module name by GETTING implications from the content of the storage variable consisting of the PROGRAM name. |
|
| 6. |
How does paging work in the memory? |
|
Answer» Whenever data is requested from the memory, the CPU first HITS the primary memory, i.e RAM, and checks if the requested data is present on that page in the memory. If it is not present, then the CPU performs paging on secondary memory, i.e READS data from hard disk in equal blocks of MEMORIES called pages. During paging, a frame constitutes a single page of physical memory and it NEED not be physically contiguous. This ensures faster memory access and ensures data is fetched faster from secondary memory. |
|
| 7. |
What is the importance of coding COMMITS in batch programs? |
|
Answer» COMMIT STATEMENTS are used for releasing LOCKS that are needed for that particular work unit and then allow new work units. In case, COMMITS are not part of the program, then during processing of the program, it has to GO back to the inserts that were made during the program RUN instead of going back to few inserts near the most recent commit. This process takes 2 or 3 times extra time than the time taken for program execution. |
|
| 8. |
What steps do you follow to create a COBOL program? |
Answer»
|
|
| 9. |
What are the various forms of Evaluate Statements? |
|
Answer» EVALUATE Statements are of different types:
|
|
| 10. |
How will you repair the SOC-7 error? |
|
Answer» The most common cause of SOC-7 error is PROBLEMATIC data associated with an uninitialized numeric item. We can get hold of dumps of run-time abends by performing some setups like invoking Operating System Services using assembly languages. Using these dumps, we can get the exact location of INSTRUCTION where the abend has occurred. Using this, we can verify the XREF output that lists the compilation to get the line number and verb of the source code of the instruction error OFFSET. RUNTIME dumps can be captured by defining datasets as Sysabout (for example) in JCL. We can also make use of the debugging utilities provided by the setups. When none of the methods is working, we need to find the error location by making use of good judgement and understanding of the system developed. |
|
| 11. |
How to handle deadlock (-911 Error) in DB2 program? |
|
Answer» Deadlock occurs in the case where two or more mainframe programs get an EXCLUSIVE lock on the RESOURCE which cant execute until the data is ACCESSED. In case the error occurs, we can roll back the current work unit of any one of the programs after a specified preset deadlock TIME interval and thereby TERMINATING the program. |
|
| 12. |
What happens if both STEPLIB and JOBLIB statements are specified? |
Answer»
|
|
| 13. |
What needs to be done to ensure the program executes above 16 Meg Line? |
|
Answer» We need to do the following steps:
|
|
| 14. |
What is the importance of the DCB parameter in DD statements? |
|
Answer» DCB stands for Data CONTROL Block. DCB parameter in DD (Data definition) statements helps to detail out the PHYSICAL characteristics of datasets that are newly created in the JOB step.
|
|
| 15. |
How many types of locks are there and what are their functions? |
|
Answer» There are 3 types of locks.
|
|
| 16. |
Difference between index and subscript. |
||||||||||||
Answer»
|
|||||||||||||