Mainframe Interview Experience with XYZ Bank | Jan 2022
Tags: mainframe, interview, jcl, cobol
Published: 2022-01-18 07:28:54

## BRIEF Yourself?
1. About you, project details, and Roles and responsibilities? 

## VERSION CONTROL TOOL (CHANGEMAN):
2. Version control tool, which one?
3. What are the steps in promoting a CHGMAN Package?
4. How do you manage a release for March and July having some same components?
5. if someone has done the code changes for a component of July release, how can you manage the same component in March release. How will you do version controlling in that case?
6. How will you generally do version control, if 2-3 people are working on same component?
7. Something went wrong! How would you backout changes, and/or release previous version of components?
8. Entire package will be backed out, or just the impacted components?

## JCL:
9. Streamline/unified way of accessing JCL/PROCS at one place?
10. How would you provide override in proc for some files in a step?
11. A release went. One step was missing in PROC in the middle. How would you temp add that step and run the job?
12. A job has many steps (>10), but you need to some steps on various scenarios for testing.  Never needs to run all steps. Always some cases and corresponding steps only! How can you automate/streamline/optimize this without everytime making changes to JCL. Best way to optimize this?
13. S806 ABEND FOR?
14. JOBLIB/JCLLIB/STEPLIB difference? How and why to use?

## COBOL:
14. COPY vs INCLUDE
15. String at random places in record. How to identify and write only those records to output file.
16. REC1 to 1st file, REC2 to 2nd file, and REC3 to 3rd file,....REC4 to 1st file, and so on....Logic?
17. How would you check for NUMERIC if the datatype is ALPHANUMERIC (ex: FHSFAHF3612436, or, 667888778)?
18. Copybook changes impact analysis?
19. How will you make sure you are not missing any component for Copybook change impact?

## Db2:
20. Can we do Db2 bind in production? If yes, then how?
21. Is changing of Isolation level directly in production possible? How will you do that?
22. Select those employees from a table who logged in last 10 minutes?

## CICS:
23. VSAM accessed by a CICS program got corrupted. How would to correct it in run time?
24. CEDA command?
25. Define COBOL-CICS process? How to test that program?
26. {NEWCOPY}

## VSAM:
27. How can you check whether a file is a VSAM file? What are different ways, if you know?
28. How can you check whether a VSAM file FB, F, VB etc?
29. How to define alternate index on a VSAM? State all steps?
30. What will you do extra in a JCL if a VSAM file defined with Alternate index? State both 1) when accessing alternate indexes in JCL alone 2) when accessing alternate index in COBOL program?
31. Can alternate index have duplicate? Is there a Limit to it, like how many dups it can have?

## FILE TRANSFER WAYS (FOR MAINFRAMES):
32. MQ - What would you do extra to setup this pipeline? like XML, queue manager etc.
33.SFTP
34. RESTful
35. CICS Webservices
36. OMVS/Unix flavour

## BONUS QUESTIONS:
37. A file is getting read by a COBOL program. The records in the file having a KEY(Length=5) at random position but always preceeded(lead) by a '/' (example: ruefuwr/12345egfuewguf). Your task is to Sort the file based on this KEY value and write the records to an output file without changing anything, expect sorting. How would you do that?  



---

> Thank You!
`MOHIT WADHWA`