Interview prep · written by the FindAJobAI team

COBOL Developer Interview Questions (2026) and How to Answer

By FindAJobAI Team Updated How we wrote this page

COBOL developer interviews test whether you can work safely inside large, old mainframe systems. Expect questions on data division layouts, packed decimal fields, JCL, CICS and DB2, plus stories about overnight failures, regulatory deadlines and programs with no documentation. Many teams add a code-reading task where you walk through a COBOL program or a dump and explain what went wrong.

Below: 30 questions with what each one really asks and an answer outline, full sample answers to the 10 most asked, red flags to avoid and a 7-day plan.

Answering with STAR

Tell each story in four steps: the situation in a sentence, your task, the actions you took (most of the answer) and the result, with a number if you have one. Aim for about two minutes; the outlines show what to include, the details must be yours.

Behavioural questions (1–10)

How you've handled real situations. Answer each with one true story, in STAR order.

  1. 1.Tell me about an overnight batch failure you had to fix before the business day.

    What they're really asking: Checks how you work under time pressure without making things worse.

    Answer outline (STAR)

    • SituationThe deposit posting job abended at 2 a.m. with branches due to open at 8.
    • TaskGet balances correct and the cycle finished before opening.
    • ActionRead the dump, found a bad record from a partner file, moved it to a reject file and restarted from the last checkpoint.
    • ResultThe cycle finished at 6:40, and the next week I added validation so that record type could not stop the job again.

    Full sample answer (fictional example)

    I was on call when the deposit posting job abended just after two in the morning, and branches opened at eight. I read the dump and saw an S0C7 in the program that reads a partner's transaction file. One record had spaces in a packed amount field. I agreed with the operations lead to move that record to a reject file and restart from the last checkpoint, and I told my manager what we were doing. The cycle finished at twenty to seven. The following week I added validation so a bad record goes to the reject file automatically instead of stopping the job.

  2. 2.Describe a time you had to change a program nobody understood.

    What they're really asking: Checks patience and method with undocumented legacy code.

    Answer outline (STAR)

    • SituationA 9,000-line loan program needed a new fee rule, and its author had retired.
    • TaskAdd the rule without changing any other calculation.
    • ActionTraced the paragraphs involved, wrote notes for each, and compared a month of output before and after the change.
    • ResultThe rule went live on schedule with identical output elsewhere, and my notes became the program's first documentation.

    Full sample answer (fictional example)

    I was asked to add a new fee rule to a loan program of about nine thousand lines whose author had retired years earlier. I started by reading the compile listing and tracing which paragraphs touched fees, writing a short note for each one. I then built a test file with a month of real loan records. I made the change in a small new paragraph so it was easy to review, and compared the full output before and after. Only the expected loans changed. The rule went live on time, and my notes became the first documentation the program ever had.

  3. 3.Tell me about a regulatory or tax deadline you delivered for.

    What they're really asking: Checks planning against a fixed legal date.

    Answer outline (STAR)

    • SituationA state tax change gave the payroll team 10 weeks before it took effect.
    • TaskUpdate every affected program and prove the results were right.
    • ActionListed the 14 affected programs, changed them in order of risk and ran 3 parallel payrolls with finance checking samples.
    • ResultWe went live 3 weeks early, and the first real payroll needed no corrections.

    Full sample answer (fictional example)

    A state tax change gave our payroll team ten weeks before it took effect. I first listed every program that touched the withholding tables, which came to fourteen, and ranked them by risk. I changed the highest risk programs first so they had the most testing time. We then ran three full parallel payrolls in a test region, and finance checked samples from each one against their own calculations. We found two rounding differences and fixed them. The change went live three weeks before the deadline, and the first real payroll needed no corrections.

  4. 4.Describe how you worked with the operations team on a job stream change.

    What they're really asking: Checks collaboration with the people who run the batch.

    Answer outline (STAR)

    • SituationI was splitting a long billing job into 4 steps that could run in parallel.
    • TaskMake the new schedule safe to restart for night operators.
    • ActionWalked the operators through the new flow, agreed restart points with them and wrote a one-page run note.
    • ResultThe first failure after go-live was restarted in 15 minutes without paging me.

    Full sample answer (fictional example)

    I was splitting a long billing job into four steps that could run in parallel, which changed what operators would see at night. Before writing much code I met the night operations lead and walked her through the new flow on a whiteboard. We agreed where restart points should be and what each failure would look like in the scheduler. I wrote a one-page run note with those steps. The first time a step failed after go-live, the operator restarted it from the note within fifteen minutes and did not need to page me. That made me sure the time spent with them was worth it.

  5. 5.Tell me about a time a change you released caused a problem.

    What they're really asking: Checks honesty and what you changed afterwards.

    Answer outline (STAR)

    • SituationA copybook change I made shifted a field and broke a downstream extract owned by another team.
    • TaskRestore the extract and stop similar breaks.
    • ActionRolled back the copybook within an hour, then used a cross-reference report to find all 11 programs using it.
    • ResultThe extract ran that night, and copybook impact checks became a required step in our releases.

    Full sample answer (fictional example)

    I once changed a copybook to add a field and placed it in the middle of the record instead of at the end. A downstream extract owned by another team read the record by position and started producing wrong values. Their team noticed the next morning. I rolled the copybook back within an hour, and the extract ran correctly that night. Then I ran a cross-reference report and found eleven programs using that copybook, several of which I had not known about. Since then, a copybook impact check has been a required step in our release checklist.

  6. 6.Tell me about a time you reduced the CPU cost of a mainframe job.

    What they're really asking: Checks awareness that mainframe processing has a direct bill.

    Answer outline (STAR)

    • SituationThe interest accrual job used more CPU each month as accounts grew.
    • TaskCut its cost without changing results.
    • ActionReplaced 2 sequential VSAM reads with keyed reads and moved a sort to DFSORT.
    • ResultCPU time fell by about a third, and the monthly charge for the job dropped with it.

    Full sample answer (fictional example)

    Our interest accrual job used more CPU every month as the number of accounts grew, and it was one of the most expensive jobs on our bill. I looked at the program and saw two sequential reads of a VSAM file that only needed a few records per account. I changed them to keyed reads and moved an internal sort into a DFSORT step before the program. I compared a full month of output to make sure results were identical. CPU time for the job fell by about a third, and our capacity planner confirmed the saving on the next invoice.

  7. 7.Describe a time you explained mainframe logic to developers who did not know COBOL.

    What they're really asking: Checks how clearly you communicate across technology teams.

    Answer outline (STAR)

    • SituationA Java team building a portal kept misreading values from our account program.
    • TaskHelp them map the data correctly without learning COBOL.
    • ActionRan a one-hour session on the copybook, signs and packed fields, with a mapping table they could keep.
    • ResultTheir mapping defects stopped, and the portal launched on its planned date.
  8. 8.Tell me about a time you found a defect during code review.

    What they're really asking: Checks attention to detail before release.

    Answer outline (STAR)

    • SituationA colleague's change moved a MOVE statement after a WRITE, so one field would print from the previous record.
    • TaskStop the error reaching customer statements.
    • ActionShowed the issue with a three-record test file and suggested moving the statement back.
    • ResultThe fix went in before promotion, and we added an output comparison to the review checklist.
  9. 9.Describe a time you had to say no to an unsafe request.

    What they're really asking: Checks whether you protect production when someone senior is in a hurry.

    Answer outline (STAR)

    • SituationA manager asked me to patch a production load module directly to fix a report before a board meeting.
    • TaskFix the report without bypassing change control.
    • ActionExplained the audit risk, then pushed an emergency change through the fast-track process with a second reviewer.
    • ResultThe report was fixed within 3 hours, and the audit trail stayed clean.
  10. 10.Tell me about learning a new part of the mainframe stack quickly.

    What they're really asking: Checks how you grow skills on the job.

    Answer outline (STAR)

    • SituationI was moved to a team that used IMS, which I had never coded against.
    • TaskBecome useful on IMS changes within a month.
    • ActionRead the team's programs, practised DL/I calls in a test region and paired with a senior colleague on 2 tickets.
    • ResultI closed my first IMS ticket alone in week 4 and kept a short guide for the next newcomer.

Technical and role-skill questions (11–22)

Can you do the work itself? Think out loud and name the trade-offs.

  1. 11.What is the difference between COMP, COMP-3 and DISPLAY fields?

    What they're really asking: Checks your grasp of how COBOL stores numbers.

    Answer outline

    • DISPLAY stores one character per digit, COMP stores binary and COMP-3 packs two digits per byte with a sign nibble.
    • The choice affects storage, arithmetic speed and how other systems must read the data.

    Full sample answer (fictional example)

    A DISPLAY field stores each digit as one character, so it is readable in a file browser but uses the most space. COMP stores the number in binary, which is compact and fast for subscripts and counters. COMP-3, or packed decimal, stores two digits per byte with the sign in the last half byte, and it is the usual choice for money. The difference matters a lot when other systems read the data, because a Java or ETL program has to unpack COMP-3 correctly. Many data errors I have seen came from that mapping.

  2. 12.What usually causes an S0C7 abend, and how do you find it?

    What they're really asking: Checks practical debugging on the mainframe.

    Answer outline

    • An S0C7 is a data exception, usually arithmetic on a packed field holding invalid data, such as spaces.
    • Use the dump offset and compile listing to find the statement, then trace where the bad value came from.

    Full sample answer (fictional example)

    An S0C7 is a data exception, and in my experience it is nearly always arithmetic or a comparison on a packed field that holds invalid data, often spaces or low values from an input file. To find it, I take the offset from the dump and look it up in the compile listing to identify the exact statement. Then I check which field was used and trace where its value came from, usually an input record or an uninitialized working storage item. The lasting fix is normally validation at the point of input, not just in the failing statement.

  3. 13.How do you pass data between a calling and a called COBOL program?

    What they're really asking: Checks knowledge of program structure and linkage.

    Answer outline

    • The caller passes items with CALL USING, and the called program defines them in its LINKAGE SECTION.
    • BY REFERENCE shares storage, while BY CONTENT passes a copy the subprogram cannot change for the caller.
  4. 14.Explain the purpose of COND and IF/THEN/ELSE in JCL.

    What they're really asking: Checks your control over job step flow.

    Answer outline

    • They decide whether a step runs based on return codes from earlier steps.
    • IF/THEN/ELSE is easier to read, while COND tests are inverted and often confuse new developers.
  5. 15.How does a pseudo-conversational CICS program work?

    What they're really asking: Checks your understanding of online transaction design.

    Answer outline

    • The program sends a screen and ends, freeing resources while the user types.
    • State is kept in the COMMAREA or a channel, and the next input starts the transaction again.

    Full sample answer (fictional example)

    In a pseudo-conversational design, the program sends a screen to the user and then ends with a RETURN that names the next transaction. While the user is typing, no task is running, so the region is not holding storage or locks for someone who might be at lunch. Any data the program needs next time is saved in the COMMAREA or a channel. When the user presses Enter, CICS starts the transaction again, and the program checks the saved state to know which step it is on. I find it more work to write, but it scales far better.

  6. 16.How do you handle a DB2 deadlock or timeout in a batch COBOL program?

    What they're really asking: Checks robust database coding on z/OS.

    Answer outline

    • Check SQLCODE after each statement and treat -911 and -913 as retryable after a rollback.
    • Commit at sensible intervals and keep restart data so the job can resume without duplicates.
  7. 17.What are the main VSAM file types and when would you use each?

    What they're really asking: Checks file handling knowledge beyond DB2.

    Answer outline

    • KSDS gives keyed access, ESDS stores records in arrival order and RRDS uses relative record numbers.
    • KSDS is the usual choice for lookups, ESDS suits logs and sequential feeds.
  8. 18.What is the difference between a static and a dynamic CALL?

    What they're really asking: Checks how programs are linked and loaded.

    Answer outline

    • A static call links the subprogram into the caller's load module at build time.
    • A dynamic call loads it at run time, so the subprogram can change without relinking the caller.
  9. 19.How do you implement checkpoint and restart in a long batch program?

    What they're really asking: Checks whether your design allows safe restart and recovery.

    Answer outline

    • Commit at intervals and save the last processed key and counters in a restart table or file.
    • On restart, read that position and skip already processed records so nothing is applied twice.
  10. 20.What does the REDEFINES clause do, and when is it risky?

    What they're really asking: Checks how well you understand the data division.

    Answer outline

    • REDEFINES lets two layouts share the same storage, often for records of different types.
    • It is risky when code reads the wrong layout for a record, which can cause bad data or abends.
  11. 21.How would you search a table in COBOL efficiently?

    What they're really asking: Checks how you handle tables in working storage.

    Answer outline

    • Use SEARCH for a linear scan of small tables and SEARCH ALL for a binary search on sorted keys.
    • SEARCH ALL needs ASCENDING or DESCENDING KEY and INDEXED BY in the table definition.
  12. 22.How do you keep mainframe source under version control today?

    What they're really asking: Checks familiarity with current release practice.

    Answer outline

    • Many shops use Endevor or ChangeMan, which manage stages, approvals and promotion.
    • Others move to Git with Zowe or IBM tooling, building and deploying through a pipeline.

Take-home or live exercise: tips

COBOL developer interviews often include a code-reading or debugging task: you get a short batch program, its copybook and a dump or bad output, and must explain what the program does, find the defect and describe how you would test the fix.

  • Read the data division and copybook first, noting packed fields, REDEFINES and table sizes.
  • Talk through the program flow aloud, paragraph by paragraph, before guessing at the bug.
  • Use the dump offset or bad output to narrow the search to specific statements.
  • Explain how you would prove the fix, such as a small test file and an output comparison.

Situational questions (23–30)

Scenarios that test judgement: say what you'd do first, and why.

  1. 23.The nightly batch is running two hours late and still going. What do you do?

    What they're really asking: Checks a calm, structured response to a live batch problem.

    Answer outline

    • Check which step is slow, its CPU and I/O, and whether input volumes or contention changed tonight.
    • Agree with operations and the business whether to wait, hold later jobs or restart, and log every decision.

    Full sample answer (fictional example)

    First I would find out which step is slow and whether it is using CPU, waiting on I/O or waiting on a lock. I would check if tonight's input volume is unusual or if another job is competing for the same file or table. At the same time I would tell operations and my manager what I know, because they may need to warn the business. Then we decide together whether to wait, hold later jobs or cancel and restart. I log each decision with the time, so the morning review is based on facts.

  2. 24.A business analyst says a report total is wrong but cannot say which records. How do you start?

    What they're really asking: Checks investigation skills on large record sets.

    Answer outline

    • Ask for one specific example and the expected value, then trace that record through each job step.
    • Compare intermediate files with File-AID or a quick program to find where values first differ.
  3. 25.You are asked to expose a COBOL program to a web team as an API. What do you check first?

    What they're really asking: Checks judgment about reuse and risk in modernization.

    Answer outline

    • Confirm the program is safe to call online, with no batch-only assumptions or file locks.
    • Agree the request and response layout, error codes, security and expected call volume with the web team.
  4. 26.A senior colleague is retiring in three months and owns a critical job stream. What do you propose?

    What they're really asking: Checks how you plan knowledge transfer before people leave.

    Answer outline

    • Schedule weekly sessions on the stream, starting with its failure history and restart steps.
    • Write run notes and program summaries as you go, and take on-call for the stream while the colleague can still advise.
  5. 27.A partner sends a file with a new record type nobody warned you about. What happens next?

    What they're really asking: Checks defensive handling of external inputs.

    Answer outline

    • Route unknown record types to a reject file so the main run can continue safely.
    • Contact the partner for the new layout, agree a date and update programs with tests.
  6. 28.You find a calculation error that has been in production for years. How do you handle it?

    What they're really asking: Checks your integrity and judgment about when to escalate.

    Answer outline

    • Confirm the error with examples and estimate how many records and amounts are affected.
    • Report it to your manager and the business owner with the evidence before changing anything.
  7. 29.Two urgent tickets arrive during month-end close. How do you decide what to work on first?

    What they're really asking: Checks how you set priorities during critical periods.

    Answer outline

    • Ask which one blocks the close or affects customers or money, and start there.
    • Tell both requesters the order and an estimate, and ask for help if both are truly critical.
  8. 30.The business wants a field widened from 7 to 9 digits across the system. How do you plan it?

    What they're really asking: Checks impact analysis on a wide change.

    Answer outline

    • Use cross-reference tools to find every copybook, program, file and table using the field.
    • Plan file conversions and downstream changes together, then test end to end in a parallel run.

Red flags to avoid in your answers

Each one is quick to fix before the day.

  1. Describing fixes made directly in production without change control.

    Explain the emergency change process you use, with a second reviewer and a record of what changed.

  2. Not knowing how packed decimal data is stored.

    Revise COMP-3 layouts and be ready to read a packed value from a hex dump during the interview.

  3. Talking about COBOL as a dead end you want to leave.

    Show interest in the systems you keep running and in modern tools such as Git, APIs and Zowe.

  4. No story about testing beyond running the program once.

    Prepare an example with a parallel run, an output comparison or regression cases that caught a defect.

How to prepare for a COBOL developer interview in 7 days

An hour or two a day is enough; the order matters more than the length.

  1. Day 1: Data division and packed fields

    Write layouts with COMP, COMP-3, REDEFINES and OCCURS, then read their values from a sample hex dump by hand.

  2. Day 2: JCL and return code flow

    Write a 5-step job with IF/THEN/ELSE and COND, then predict which steps run for several return code cases.

  3. Day 3: Abend codes and dump reading

    List the causes of S0C7, S0C4, S322 and S806, and practise finding the failing line from an offset.

  4. Day 4: CICS and DB2 refresher

    Review pseudo-conversational design, COMMAREA use, SQLCODE handling and commit intervals with small examples.

  5. Day 5: Mainframe incident stories

    Write three stories about batch failures, deadlines or risky changes using situation, task, action and result.

  6. Day 6: Study the employer's estate

    Read the posting for industry, stack and tools, and match each requirement to one example from your work.

  7. Day 7: Mock COBOL code walkthrough

    Explain a short COBOL program aloud in 20 minutes, find a planted bug, then pick three questions to ask.

Questions to ask the interviewer

Pick two or three; the answers tell you whether you want the job.

  1. How long is the batch window, and how close does the cycle run to it today?
  2. Which source control and release tools do you use for mainframe code?
  3. How is on-call shared, and how often are developers paged at night?
  4. Are there plans to expose or replace parts of the COBOL estate in the next two years?
  5. How do new developers learn the programs, and is anyone retiring soon?

Preparation tips

  • Bring one abend story with the code, the root cause from the dump and the fix you shipped.
  • Revise COMP-3 layouts and JCL return code logic, since live questions often start there.
  • Be ready to explain how you test a change, including parallel runs and output comparisons.

Prepare the general questions too: tell me about yourself, why do you want to work here? and why are you leaving? Afterwards, send a thank-you email; when the offer comes, negotiate the salary.

How we wrote this page

The FindAJobAI team wrote the questions, outlines and sample answers for COBOL developer interviews. The people, employers and numbers in the samples are invented: copy the structure, and use details from your own work.

Once we track enough live COBOL developer job ads, this page also shows the skills they ask for most, counted the same way as our in-demand skills report.

Last reviewed on November 1, 2026.