i
TCS
Filter interviews by
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 ...
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...
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.
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
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.
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
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)
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...
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...
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.
I appeared for an interview in Apr 2025, where I was asked the following questions.
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...
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.
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...
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...
I appeared for an interview in Mar 2025, where I was asked the following questions.
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...
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...
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...
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
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.
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
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)
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.
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
I applied via LinkedIn and was interviewed in Feb 2024. There were 2 interview rounds.
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.
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)
I applied via Company Website and was interviewed in Dec 2023. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jun 2023. There were 2 interview rounds.
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...
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.
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
Some of the top questions asked at the TCS Mainframe Developer interview -
The duration of TCS Mainframe Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 13 interview experiences
Difficulty level
Duration
based on 87 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
65.6k
salaries
| ₹7.7 L/yr - ₹12.6 L/yr |
AST Consultant
53.4k
salaries
| ₹12 L/yr - ₹20.5 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.6 L/yr - ₹6.4 L/yr |
Associate Consultant
32.8k
salaries
| ₹16.2 L/yr - ₹28 L/yr |
Amazon
Wipro
Infosys
Accenture