Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

TCS Mainframe Developer Interview Questions and Answers

Updated 27 May 2025

13 Interview questions

A Mainframe Developer was asked 1mo ago
Q. What are the different ways to pass input into COBOL programs?
Ans. 

Input in COBOL can be passed through files, user input, and databases, enabling versatile data handling.

  • 1. File Input: COBOL can read data from sequential or indexed files using the INPUT-OUTPUT section.

  • Example: OPEN INPUT myFile.

  • 2. User Input: COBOL programs can accept input from users via the ACCEPT statement.

  • Example: ACCEPT userInput FROM CONSOLE.

  • 3. Database Input: COBOL can interact with databases using ...

A Mainframe Developer was asked 8mo ago
Q. Tell me about COBOL basics.
Ans. 

COBOL is a high-level programming language used for business applications on mainframe computers.

  • COBOL stands for Common Business-Oriented Language.

  • It was designed in 1959 by CODASYL and is primarily used in finance, insurance, and government sectors.

  • COBOL programs are divided into four divisions: Identification, Environment, Data, and Procedure.

  • It uses English-like syntax and is known for its readability and self...

Mainframe Developer Interview Questions Asked at Other Companies

asked in TCS
Q1. How will you use NULL indicator in your program? How will you use ... read more
asked in EXL Service
Q2. What is the scripting language used on IBM mainframe operating sy ... read more
asked in TCS
Q3. How will you use cursor in COBOL program? What is the difference ... read more
asked in Infosys
Q4. What is the difference between COMP and COMP3?
asked in Infosys
Q5. What is a cursor in the context of databases, and what purposes d ... read more
A Mainframe Developer was asked 10mo ago
Q. What is the difference between static and dynamic calls?
Ans. 

Static call is resolved at compile time, while dynamic call is resolved at runtime.

  • Static call is determined at compile time based on the declared type of the object.

  • Dynamic call is determined at runtime based on the actual type of the object.

  • Static call is faster but less flexible, while dynamic call is slower but more flexible.

A Mainframe Developer was asked 10mo ago
Q. How can the sort command be used to search for a string?
Ans. 

The SORT command in Mainframe can be used to search for a string.

  • Use the SORT command with the FIND keyword followed by the string you want to search for.

  • Specify the input file and output file for the search operation.

  • Example: SORT FILE(INPUT) USING(CTL1) COPY FIND FIRST 'SEARCHSTRING' OUTPUT FILE(OUTPUT)

What people are saying about TCS

View All
a senior associate
2w
Tata's lost its touch? TCS ain't what it used to be :-(
Tata is not the same after Sir Ratan Tata! TCS used to really look after its employees, even when they were on the bench. Now, things have changed and it's disappointing.
FeedCard Image
Got a question about TCS?
Ask anonymously on communities.
A Mainframe Developer was asked 12mo ago
Q. What are the different levels used in COBOL?
Ans. 

COBOL has different levels such as level 01, level 77, etc. for defining data structures and variables.

  • Level 01 is used for defining record structures.

  • Level 77 is used for defining elementary data items.

  • Level 88 is used for defining condition names.

  • Level 66 is used for renaming data items.

  • Level 88 is used for defining condition names.

A Mainframe Developer was asked 12mo ago
Q. What is the difference between rename and redefine?
Ans. 

Rename is used to change the name of a data item while redefine is used to change the structure of a data item.

  • Rename is used to change the name of a data item without changing its structure

  • Redefine is used to change the structure of a data item without changing its name

  • Example: In COBOL, renaming a data item involves using the RENAMES clause, while redefining a data item involves using the REDEFINES clause

A Mainframe Developer was asked 12mo ago
Q. Which utility is used for creating GDG?
Ans. 

IDCAMS utility is used for creating GDG (Generation Data Group)

  • IDCAMS utility is used to define, alter, and delete GDGs

  • Syntax for defining GDG: DEFINE GDG(NAME(dataset.name) LIMIT(n) SCRATCH)

  • Example: DEFINE GDG(NAME(TEST.GDG) LIMIT(5) SCRATCH)

Are these interview questions helpful?
A Mainframe Developer was asked
Q. How will you use cursor in COBOL program? What is the difference between cursor and SQL? When will you use JOINKEYS ?
Ans. 

Using cursor in COBOL program, difference between cursor and SQL, and when to use JOINKEYS.

  • Cursor is used to fetch data from a database table in COBOL program.

  • SQL is a language used to interact with databases, while cursor is a mechanism to fetch data from a database table.

  • JOINKEYS is used to join two or more files based on a common key.

  • JOINKEYS is used when the files are too large to fit in memory.

  • JOINKEYS is use...

A Mainframe Developer was asked
Q. How will you use NULL indicator in your program? How will you use VSAM file in program?SOC7 abend reason and resolution.
Ans. 

Explaining the use of NULL indicator and VSAM file in Mainframe development and resolving SOC7 abend.

  • NULL indicator is used to indicate the absence of data in a field

  • VSAM file is used to store and retrieve data in a program

  • SOC7 abend occurs due to invalid numeric data and can be resolved by identifying and correcting the error

  • NULL indicator can be checked using IF statement or COBOL verb SET

  • VSAM file can be access...

A Mainframe Developer was asked 12mo ago
Q. GDG version and its attributes
Ans. 

GDG (Generation Data Group) version and its attributes are used in mainframe development to manage versions of datasets.

  • GDG is used to manage versions of datasets in mainframe environment.

  • Attributes of GDG include generation number, creation date, expiration date, and limit.

  • Example: MYDATASET.GDG(+1) refers to the latest version of MYDATASET.

TCS Mainframe Developer Interview Experiences

14 interviews found

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Technical, related to role
  • Q2. Skill, expectation
Round 2 - HR 

(2 Questions)

  • Q1. Salary, offer letter, process
  • Q2. Office

Interview Preparation Tips

Interview preparation tips for other job seekers - avoid Tcs and try to go for developing company

Mainframe Developer Interview Questions & Answers

user image Sudhanshu Ranjan

posted on 27 May 2025

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Apr 2025, where I was asked the following questions.

  • Q1. What is call by value and reference in Cobol.
  • Ans. 

    Call by value passes a copy of the variable, while call by reference passes the variable itself, allowing modifications.

    • Call by Value: A copy of the variable is passed to the subprogram.

    • Example: If 'A' is 5, passing 'A' means the subprogram works with a copy of 5.

    • Call by Reference: The actual variable is passed, allowing changes to affect the original.

    • Example: If 'A' is 5, passing 'A' allows the subprogram to modify 'A...

  • Answered by AI
  • Q2. What is command for executing a job.
  • Ans. 

    To execute a job in a mainframe environment, the JCL (Job Control Language) command 'SUBMIT' is commonly used.

    • JCL is used to define jobs for execution in mainframe systems.

    • The command to execute a job is typically 'SUBMIT'.

    • Example: //JOBNAME JOB (ACCT),'NAME',CLASS=A,MSGCLASS=A

    • You can submit a job using the command: SUBMIT 'dataset.name'

    • Jobs can also be executed using TSO commands like 'SUB' for submitting JCL.

  • Answered by AI
  • Q3. How we pass input into cobol, number of ways.
  • Ans. 

    Input in COBOL can be passed through files, user input, and databases, enabling versatile data handling.

    • 1. File Input: COBOL can read data from sequential or indexed files using the INPUT-OUTPUT section.

    • Example: OPEN INPUT myFile.

    • 2. User Input: COBOL programs can accept input from users via the ACCEPT statement.

    • Example: ACCEPT userInput FROM CONSOLE.

    • 3. Database Input: COBOL can interact with databases using embed...

  • Answered by AI
  • Q4. Why we use DISP parameter in cobol and what we pass inside it.
  • Ans. 

    DISP parameter in COBOL specifies the dataset's disposition during job execution, controlling its status and actions.

    • DISP can take three values: (1) Status, (2) Normal, (3) Abnormal.

    • Example: DISP=(NEW,CATLG,DELETE) creates a new dataset, catalogs it, and deletes it if the job fails.

    • The first value indicates the dataset's status: NEW, OLD, or MOD.

    • The second value specifies what to do with the dataset after the job compl...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. What is the process of precompilation in DB2?
  • Ans. 

    Precompilation in DB2 translates SQL statements into host language code for efficient execution.

    • Precompilation converts SQL statements in application programs into a format that can be processed by DB2.

    • It generates a DBRM (Database Request Module) that contains the SQL statements and their associated metadata.

    • The precompiled code is then compiled with the host language code (e.g., COBOL, C) to create an executable prog...

  • Answered by AI
  • Q2. How can I extract only two columns, age and salary, from an input file with three columns (age, salary, and employee ID) using the sort command?
  • Ans. 

    Use the sort command with specific options to extract age and salary columns from a file containing three columns.

    • Use the cut command: You can use 'cut -d' ' -f1,2 inputfile.txt' to extract the first two columns (age and salary) assuming space as a delimiter.

    • Using awk: 'awk '{print $1, $2}' inputfile.txt' will also extract the first and second columns.

    • If the columns are separated by commas, use 'cut -d',' -f1,2 inputfi...

  • Answered by AI
  • Q3. What is the restart logic in DB2?
  • Ans. 

    Restart logic in DB2 ensures data integrity and consistency after a failure during transaction processing.

    • DB2 uses a two-phase commit protocol to manage transactions, ensuring all or none of the changes are applied.

    • In case of a failure, DB2 can restart the transaction from the last committed state, avoiding partial updates.

    • The restart logic involves logging changes in a log file, which can be used to recover the databa...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
-
Result
Selected Selected
Round 1 - Technical 

(3 Questions)

  • Q1. All topics covered including sort
  • Q2. Db2 queries like select insert, DML,DDL
  • Q3. Cobol inspect statement, Cursors, Dynamic and Static calls
Round 2 - Technical 

(1 Question)

  • Q1. SQL queries , Table declarations, DML,DDL statements
Round 3 - HR 

(1 Question)

  • Q1. About yourself, package discussion
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. What are the different levels used in cobol
  • Ans. 

    COBOL has different levels such as level 01, level 77, etc. for defining data structures and variables.

    • Level 01 is used for defining record structures.

    • Level 77 is used for defining elementary data items.

    • Level 88 is used for defining condition names.

    • Level 66 is used for renaming data items.

    • Level 88 is used for defining condition names.

  • Answered by AI
  • Q2. What is the difference between rename and redefine
  • Ans. 

    Rename is used to change the name of a data item while redefine is used to change the structure of a data item.

    • Rename is used to change the name of a data item without changing its structure

    • Redefine is used to change the structure of a data item without changing its name

    • Example: In COBOL, renaming a data item involves using the RENAMES clause, while redefining a data item involves using the REDEFINES clause

  • Answered by AI
  • Q3. Which utility is used for creating GDG
  • Ans. 

    IDCAMS utility is used for creating GDG (Generation Data Group)

    • IDCAMS utility is used to define, alter, and delete GDGs

    • Syntax for defining GDG: DEFINE GDG(NAME(dataset.name) LIMIT(n) SCRATCH)

    • Example: DEFINE GDG(NAME(TEST.GDG) LIMIT(5) SCRATCH)

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(3 Questions)

  • Q1. DB2 compilation process
  • Q2. Static and Non-static
  • Q3. GDG version and its attributes
  • Ans. 

    GDG (Generation Data Group) version and its attributes are used in mainframe development to manage versions of datasets.

    • GDG is used to manage versions of datasets in mainframe environment.

    • Attributes of GDG include generation number, creation date, expiration date, and limit.

    • Example: MYDATASET.GDG(+1) refers to the latest version of MYDATASET.

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Questios on JCL abend codes
Round 2 - One-on-one 

(1 Question)

  • Q1. Project description and daily activities
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Feb 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Difference between static and dynamic call
  • Ans. 

    Static call is resolved at compile time, while dynamic call is resolved at runtime.

    • Static call is determined at compile time based on the declared type of the object.

    • Dynamic call is determined at runtime based on the actual type of the object.

    • Static call is faster but less flexible, while dynamic call is slower but more flexible.

  • Answered by AI
  • Q2. Sort command to search a string
  • Ans. 

    The SORT command in Mainframe can be used to search for a string.

    • Use the SORT command with the FIND keyword followed by the string you want to search for.

    • Specify the input file and output file for the search operation.

    • Example: SORT FILE(INPUT) USING(CTL1) COPY FIND FIRST 'SEARCHSTRING' OUTPUT FILE(OUTPUT)

  • Answered by AI
Round 2 - HR 

(2 Questions)

  • Q1. It was good and formal
  • Q2. It was formal and good

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Company Website and was interviewed in Dec 2023. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Questions on sort utility
  • Q2. Job card and parameters

Interview Preparation Tips

Interview preparation tips for other job seekers - okay
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed before Jun 2023. There were 2 interview rounds.

Round 1 - Technical 

(3 Questions)

  • Q1. Mainframe Modernization Process
  • Ans. 

    Mainframe modernization process involves updating legacy systems to newer technologies while preserving critical business logic.

    • Assess current mainframe environment and identify areas for modernization

    • Develop a modernization strategy, including choosing the right technology stack

    • Migrate data and applications to the new platform while ensuring minimal disruption to business operations

    • Test the modernized system thoroughl...

  • Answered by AI
  • Q2. Temporary files in JCL
  • Ans. 

    Temporary files in JCL are used to store intermediate data during job execution.

    • Temporary files are defined using DD statements in JCL.

    • They are typically used to store data that needs to be processed or manipulated before being written to permanent files.

    • Temporary files are often allocated with DISP=(MOD,DELETE) to ensure they are deleted after job completion.

  • Answered by AI
  • Q3. Sort JCL utilities and scenarios
  • Ans. 

    Sort JCL utilities are used to sort data in Mainframe environment based on specific criteria.

    • Use SORT utility in JCL to sort data in ascending or descending order

    • Specify the key fields to sort on in the SORT statement

    • Use INCLUDE and OMIT statements to filter data before sorting

    • Use JOINKEYS utility to merge two or more sorted datasets based on key fields

  • Answered by AI
Round 2 - HR 

(2 Questions)

  • Q1. What is your expectation
  • Q2. Notice period, Why change, Expected CTC

Skills evaluated in this interview

TCS Interview FAQs

How many rounds are there in TCS Mainframe Developer interview?
TCS interview process usually has 1-2 rounds. The most common rounds in the TCS interview process are Technical, HR and One-on-one Round.
How to prepare for TCS Mainframe Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at TCS. The most common topics and skills that interviewers at TCS expect are Cobol, JCL, Cics, Mainframes and Db2.
What are the top questions asked in TCS Mainframe Developer interview?

Some of the top questions asked at the TCS Mainframe Developer interview -

  1. How will you use NULL indicator in your program? How will you use VSAM file in ...read more
  2. How will you use cursor in COBOL program? What is the difference between cursor...read more
  3. How can I extract only two columns, age and salary, from an input file with thr...read more
How long is the TCS Mainframe Developer interview process?

The duration of TCS Mainframe Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.1/5

based on 13 interview experiences

Difficulty level

Easy 18%
Moderate 82%

Duration

Less than 2 weeks 60%
2-4 weeks 20%
4-6 weeks 20%
View more
TCS Mainframe Developer Salary
based on 1.5k salaries
₹3 L/yr - ₹9.8 L/yr
10% less than the average Mainframe Developer Salary in India
View more details

TCS Mainframe Developer Reviews and Ratings

based on 87 reviews

3.8/5

Rating in categories

3.4

Skill development

4.0

Work-life balance

2.8

Salary

4.5

Job security

3.6

Company culture

2.5

Promotions

3.3

Work satisfaction

Explore 87 Reviews and Ratings
System Engineer
1.1L salaries
unlock blur

₹1 L/yr - ₹9 L/yr

IT Analyst
65.6k salaries
unlock blur

₹7.7 L/yr - ₹12.6 L/yr

AST Consultant
53.4k salaries
unlock blur

₹12 L/yr - ₹20.5 L/yr

Assistant System Engineer
33.2k salaries
unlock blur

₹2.6 L/yr - ₹6.4 L/yr

Associate Consultant
32.8k salaries
unlock blur

₹16.2 L/yr - ₹28 L/yr

Explore more salaries
Compare TCS with

Amazon

4.0
Compare

Wipro

3.7
Compare

Infosys

3.6
Compare

Accenture

3.8
Compare
write
Share an Interview