Engineering

COBOL Developer mock interview questions

19 questions a COBOL Developer panel actually asks, with what each one tests and what a strong answer contains, then practice any of them live. Mainframe batch, copybook and data handling round for COBOL developer interviews.

No account needed

Answer one real COBOL Developer question now

A question a COBOL Developer panel actually asks, answered out loud, scored on what you said and how you said it. Under two minutes, and nothing to sign up for.

“An overnight batch job abended with an S0C7. What does that usually mean, and how do you find the record that caused it?”

We never store the audio. Your answer is deleted within 24 hours unless you save the result.

  • Adaptive follow-ups, not a fixed question list
  • Rubric scorecard with evidence from your answers
  • Voice or text, with delivery coaching on voice sessions

Thinking past the interview? Carmen can help with your whole COBOL Developer career: a switch, a raise, or what comes next.

19 cobol developer mock interview questions

The questions a COBOL Developer panel actually asks, with what each one is testing and what a strong answer contains. Click any question to run it in a live session: your AI interviewer will cover it and score how you answer.

  1. 1.

    An overnight batch job abended with an S0C7. What does that usually mean, and how do you find the record that caused it?

    Why they ask it: The most recognisable mainframe production problem. The interviewer wants to hear that you have actually been paged for one.

    A strong answer: S0C7 is a data exception, almost always invalid data in a packed or zoned decimal field, such as spaces or low values where a number was expected, or a record layout mismatch. Find it from the dump and the offset of the failing instruction mapped back to the source line through the compile listing, identify the field, then locate the input record from the record count or a display. Fix the data or add validation, and decide with operations whether to restart from a checkpoint or rerun.

  2. 2.

    Explain COMP, COMP-3 and DISPLAY numeric fields. How many bytes does PIC S9(7) COMP-3 take?

    Why they ask it: Data representation is the foundation of COBOL work and the cause of most layout bugs.

    A strong answer: DISPLAY stores one digit per byte in zoned decimal. COMP stores binary. COMP-3 is packed decimal with two digits per byte and the sign in the last half byte, so S9(7) COMP-3 takes four bytes. A strong answer mentions why packed decimal suits money arithmetic and the risk of truncation when binary fields are defined without the right compiler option.

  3. 3.

    What is a copybook, and what goes wrong when one changes?

    Why they ask it: Copybooks are how record layouts are shared across programs, and changing them is a classic source of production failures.

    A strong answer: A copybook is a shared source member pulled in with COPY, usually a record layout. When it changes, every program that uses it must be recompiled, and every file written with the old layout must be converted. Missing one program means it reads fields at the wrong offsets. A strong answer includes finding every consumer through cross-reference tools and coordinating the file conversion.

  4. 4.

    Walk me through a JCL job that runs two steps where the second must only run if the first succeeds.

    Why they ask it: JCL literacy is required for batch work.

    A strong answer: A JOB card, EXEC statements for each step, DD statements defining input and output datasets with DISP, space and DCB attributes as needed, and conditional execution using IF THEN ELSE on the first step's return code or the COND parameter. Mentioning how the program sets RETURN-CODE and how temporary datasets pass between steps completes the picture.

  5. 5.

    How do you process a VSAM KSDS file, and what do you do with file status codes?

    Why they ask it: File handling correctness in COBOL depends on checking status, which many programs historically skipped.

    A strong answer: Define the file with organisation indexed and an access mode of sequential, random or dynamic, declare a FILE STATUS field, check it after every I/O operation, and handle expected conditions such as end of file and record not found separately from real errors. Using START and READ NEXT for a keyed range is a practical detail.

  6. 6.

    The business wants to expose a calculation that lives in a COBOL program to a new web application. How would you approach it?

    Why they ask it: A modernisation tradeoff question, which is where much current COBOL work sits.

    A strong answer: Understand the program's inputs, outputs and dependencies first. Options include wrapping it as a callable service through CICS or a mainframe API layer, extracting it into a reusable subprogram, or rewriting it with the COBOL version used as the test oracle. Whatever the choice, build regression tests from production-like data before touching it and agree who owns the logic afterwards.

  7. 7.

    Tell me about a change you made to code that had run in production for years with little documentation. How did you make sure you did not break it?

    Why they ask it: Behavioural, aimed at the defining pressure of the role: core systems where a small mistake affects money or benefits.

    A strong answer: How you learned what the code actually did, the test data and parallel runs you used to compare old and new output, who you involved for sign-off, how the change was scheduled into the batch window, and what documentation you left behind.

How the COBOL Developer interview runs

COBOL interviews are usually run by a mainframe team lead and a senior developer, often in banking, insurance or government. Expect a technical conversation on COBOL data definitions, copybooks, file handling and batch JCL, with questions on DB2 or CICS where the shop uses them, rather than algorithm puzzles. Many interviews include reading a code fragment or a failing job's output and explaining what went wrong, and a discussion of how you change critical code that has run for decades.

What the panel scores

COBOL language and data

Whether you understand data definitions and representation precisely.

  • Explains packed, binary and zoned decimal
  • Understands copybooks and REDEFINES
  • Writes clear, structured procedure code

Batch and mainframe environment

Whether you can run and support batch processing.

  • Reads and writes JCL confidently
  • Handles VSAM and file status properly
  • Understands restart and checkpoint

Production support

Whether you can diagnose and recover from failures.

  • Diagnoses abends from dumps and listings
  • Coordinates reruns with operations
  • Fixes root causes, not only data

Change safety

Whether you change critical systems carefully.

  • Uses parallel runs and regression data
  • Finds all consumers of a change
  • Documents what was learned

Common questions in every interview

These come up in almost every COBOL Developer interview regardless of the company or the round.

  1. 8.

    Tell me about yourself.

    Why they ask it: Opens the interview and sets the frame. The interviewer is checking whether you can select what matters for this job rather than narrate your whole history.

    A strong answer: A 60-90 second arc: where you are now, one or two proof points that match the posting, and why this role is the logical next step. Present, past, then future.

  2. 9.

    Why do you want this role?

    Why they ask it: Tests whether you read the job description or mass-applied. Weak answers are about what the candidate gets; strong answers connect to the work itself.

    A strong answer: Two specifics from the posting or the company's actual work, plus an honest line about what you want to get better at here.

  3. 10.

    Walk me through your resume.

    Why they ask it: Checks that your story holds together and that the transitions were deliberate rather than accidental.

    A strong answer: Chronological but fast, with a reason attached to each move and more time on the roles closest to this one.

  4. 11.

    Tell me about a time you failed.

    Why they ask it: Tests self-awareness and whether you own outcomes. Interviewers are listening for a real failure, not a disguised strength.

    A strong answer: A genuine miss, what you specifically got wrong, the cost, and the concrete thing you changed afterwards that has since held up.

  5. 12.

    Tell me about a conflict with a coworker or manager.

    Why they ask it: Predicts how you behave when the team disagrees. The trap is blaming the other person.

    A strong answer: The substance of the disagreement, what you did to understand their position, how it resolved, and what the working relationship looked like after.

  6. 13.

    What's your greatest strength?

    Why they ask it: Checks whether you know what you're actually good at and can prove it.

    A strong answer: One strength that maps to the posting, plus a short example where it produced a measurable result.

  7. 14.

    What's your greatest weakness?

    Why they ask it: Tests honesty and whether you're actively working on something. Rehearsed non-answers ('I work too hard') read as evasive.

    A strong answer: A real limitation that isn't core to the job, the system you built to manage it, and evidence it's improving.

  8. 15.

    Tell me about a time you had to influence someone without authority.

    Why they ask it: Almost every role depends on getting people who don't report to you to change course.

    A strong answer: What you wanted, why they resisted, the evidence or framing that moved them, and what actually shipped as a result.

  9. 16.

    Where do you see yourself in five years?

    Why they ask it: Tests whether this job fits your trajectory, which is a retention question in disguise.

    A strong answer: A direction rather than a title, and a line about the skills this role would build toward it. Vague ambition and rigid title-chasing both land badly.

  10. 17.

    Why are you leaving your current job?

    Why they ask it: Screens for red flags. Interviewers listen for how you talk about people you no longer work with.

    A strong answer: Forward-looking and specific about what you're moving toward. Criticism of a former employer costs you more than it gains, even when it's deserved.

  11. 18.

    What are your salary expectations?

    Why they ask it: Checks whether you've done market research and whether you're in range before anyone spends more time.

    A strong answer: A researched range with your target near the bottom of it, framed against the scope of the role. Deflect once if the posting has no band, then answer.

  12. 19.

    Do you have any questions for us?

    Why they ask it: The most under-prepared question in the interview, and the one that most changes the final impression.

    A strong answer: Two or three questions about how the team actually works: what the first 90 days look like, how success is measured, what the hardest part of the job is.

Every round ends in a scorecard like this

Your COBOL Developer answers, quoted back, scored on what this role is judged on, with the line to say instead.

Round Zero interview scorecard: a quoted answer flagged 'Light on metrics', a suggested fix, and an overall score of 84 out of 100.Round Zero interview scorecard: a quoted answer flagged 'Light on metrics', a suggested fix, and an overall score of 84 out of 100.

Real screen from the app. Sample from a product design round.

Related roles

All Engineering →

No spam. Unsubscribe anytime.

Ready to practice as a COBOL Developer?

Sign up free, no card. 30 voice minutes and unlimited typed interviews, each ending in the complete scorecard: rubric scores, strengths, and what to fix next. Nothing is blurred.

  • ✓ Predefined role or paste any job description
  • ✓ Rubric scores with evidence quotes
  • ✓ 888+ roles to choose from

Questions & answers

Is the COBOL Developer mock interview free?
Yes. 30 voice minutes and unlimited typed COBOL Developer interviews, no card. You get the complete rubric scorecard every time, with the evidence quoted from your own answers. Nothing is blurred.
Can I use my own job description instead?
Yes. Predefined roles are starting points. Paste any JD in the setup form and your AI interviewer will tailor questions to that posting.
How is scoring tailored to this role?
We pre-fill a realistic COBOL Developer job description and interview format so questions and the scorecard match how this role is actually interviewed.
Should I tailor my resume before practicing?
Run a resume fit check against a COBOL Developer job description first, then practice the interview with the same JD for a tighter loop.