0% found this document useful (0 votes)
217 views

Mainframe Interview QA

The document contains questions related to various domains including credit cards, COBOL, DB2, JCL, VSAM, and CICS. The questions cover topics such as authorization processes, disputes, chargebacks, transaction reversals, COBOL divisions/sections, modes, searching, error handling, strings, SQL queries, joins, utilities, region parameters, GDG, VSAM file types, CICS debugging, enabling files, killing transactions, remote file access, TSQ/TDQ, ATI triggering, maps, and more.

Uploaded by

meetdeejay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
217 views

Mainframe Interview QA

The document contains questions related to various domains including credit cards, COBOL, DB2, JCL, VSAM, and CICS. The questions cover topics such as authorization processes, disputes, chargebacks, transaction reversals, COBOL divisions/sections, modes, searching, error handling, strings, SQL queries, joins, utilities, region parameters, GDG, VSAM file types, CICS debugging, enabling files, killing transactions, remote file access, TSQ/TDQ, ATI triggering, maps, and more.

Uploaded by

meetdeejay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Credit Cards Domain:

1) What is the authorization process and explain what are all the party’s involved in it?
2) What is dispute?
3) What is chargeback and explain with the scenario
4) What is transaction reversal and explain
5) what is offline password and online password
6) What type of information gets stored back side of the magnetic black stripe?
7) What do you mean by Code 10 process
8) Suppose your card gets swiped without your presence, how the issuer bank knows that you are
cardholder of that particular card?
9) What are all the party’s involved in the Issuer part
10) Suppose you are going abroad and swiping your India HDFC card, then which party plays crucial
role to identify your card?
11) In which scenario your card will go into collection department?
12) What is acquirer and when It will come into picture?

Mainframe:

COBOL:

1) List out the divisions and sections

2) What are all modes in Cobol

3) Search and search all

4) Stop run and Goback

5) Next sentence and continue

6) Redefines

7) How you resolve SOC7

8) Inspect clause

9) String and unstring

10) String with pointer

11) Static and Dynamic call

12) Call by reference and call by value


13) Subscript and index difference

14) Comp Sync

15) Memory allocation for Comp , comp1 , comp2 , comp3

16) I have string like ‘I am from Bangalore Karnataka India ‘

I need to display as ‘Iamfrombangalorekarnatakaindia’

How will you do that?

We can use reference modification and also internal table also.

17) I am accessing one PDS member in edit mode but it says ‘used by other’ kind of message ,
how can I know the locked user

18) I want to search the strings thru ISPF panel

19) Matching logic

1st scenario: I have two files not in sorted order and two files are not having match values but

The output file needs to be sorted order with the two files of data

2nd scenario: I have two files not in sorted order includes matching values and output file
needs to be only with the matching values

20) Depending on clause

21) FD section in cobol program

22) Select statements for VSAM files

23) What is US-T in select clause

24) Restart process with the files


DB2

1) What is error code for end of record/record not found in DB2?

100

2) Then how you will find that, Error is for end of record or record not found?

If we are using select statement, SQL error code 100 represents record not found
If we are using cursor, in that situation, SQL error code 100 represents end of records

3) Find the Nth highest Salary from the table

Employee
Employee ID Salary
3 200
4 800
7 450

To get the Max Salary

Select Max(Sal) from Emp

SELECT *
FROM Employee Emp1
WHERE (N-1) = SELECT COUNT(DISTINCT(Emp2.Salary))
FROM Employee Emp2
WHERE Emp2.Salary > Emp1.Salary)

Suppose if you want to fetch the 2nd highest salary from the table

SELECT *
FROM Employee Emp1
WHERE (N-1) = SELECT COUNT(DISTINCT(Emp2.Salary))
FROM Employee Emp2
WHERE Emp2.Salary > 200)

The salary in the first row of the Employee table is 200. Because the sub query is correlated to the
outer query through the alias Emp1, it means that when the first row is processed, the query will
essentially look like this – note that all we did is replace Emp1.Salary with the value of 200:
So, what exactly is happening when that first row is processed? Well, if you pay special attention to
the subquery you will notice that it’s basically searching for the count of salary entries in the
Employee table that are greater than 200. Basically, the subquery is trying to find how many salary
entries are greater than 200. Then, that count of salary entries is checked to see if it equals 1 in the
outer query, and if so then everything from that particular row in Emp1 will be returned.

Note that Emp1 and Emp2 are both aliases for the same table – Employee. Emp2 is only being used in
the subquery to compare all the salary values to the current salary value chosen in Emp1. This allows
us to find the number of salary entries (the count) that are greater than 200. And if this number is
equal to N-1 (which is 1 in our case) then we know that we have a winner – and that we have found
our answer.

But, it’s clear that the subquery will return a 2 when Emp1.Salary is 200, because there are clearly 2
salaries greater than 200 in the Employee table. And since 2 is not equal to 1, the salary of 200 will
clearly not be returned.

So, what happens next? Well, the SQL processor will move on to the next row which is 800, and the
resulting query looks like this:

SELECT *
FROM Employee Emp1
WHERE (1) = (SELECT COUNT(DISTINCT(Emp2.Salary))
FROM Employee Emp2
WHERE Emp2.Salary > 800)

Since there are no salaries greater than 800, the query will move on to the last row and will of course
find the answer as 450. This is because 800 is greater than 450, and the count will be 1. More precisely,
the entire row with the desired salary would be returned, and this is what it would look like:

EmployeeID Salary
7 450

It’s also worth pointing out that the reason DISTINCT is used in the query above is because there
may be duplicate salary values in the table. In that scenario, we only want to count repeated salaries
just once, which is exactly why we use the DISTINCT operator.

4) SQL error codes

http://www.caliberdt.com/tips/sqlcode.htm

5) I want to achieve only duplicate records from the table

6) I want to get the highest salary from the table


7) I want to get the second highest salary from the table

8) Leftouter and Inner join, which scenarios we can use?

9) Restart process

10) Pre compilation process

11) Cursor remains to be open after closing the cursor also, what is the process for it

12) What is dynamic SQL

13) What is triggers

14) What is explain

15) What is collection, package, plan

16) What is views and when we will use it

17) What is the union and union all

18) What is on delete rules and write the syntax part

19) What is correlated subquery

20) What are all the utilities are available with the DB2 part

21) What is the thumb rule for Having clause

22) What is the difference between having and where clause

23) I want to retrieve the employee names who are all joined in month of January and who are all
left the company in February and who are all having attendance as ‘P’ in the month of March

24) I want to retrieve the duplicate names from the table

25) What is consistency token

26) Explain the cursor process

27) What is isolation levels and what is the default one

28) Whenever the program gets changed, do we need to bind the plan also ?

If no why not required?

29) What is the precompiler utility name

30) Commit and rollback


JCL:

1) What is the keyword and positional parameters

2) What are all the utilities available in JCL

3) I have 10 steps but I want to execute only 5th step alone

4) What are all the keyword parameters that we can code in the job level and step level

5) What is PROCLIB ,JCLLIB, JOBLIB

6) Suppose I have coded Loadlibs in the steplib and joblib, which loadlibs have priority

7) I want to check the syntax errors without submiiting job

8) I want to check the empty file with utility

9) What is mod parameter and what it will do while using it in DCB parameter

10) What is GDG and the parameters that we used to create

11) What is region parameter

12) What is dummy parameter and temp

13) What is outlim

14) Compare process with JCL

15) What is the max time we can code for time parameter

16) What is symbolic parameter and how will code that

17) What is catalogued procedure and in stream procedure

18) In the Proc, Parm parameter coded but I want to override that parameter also how I can
achieve?

19) Is it possible to concatenate datasets with one DD name, if yes how we can code and do we
need to follow any precautions for that?

20) What are the space abends

21) I want to execute 10 jobs at a time in a single job, how we can do that

22) I want to execute the particular steps with the utility, how we can do that?
23) Comparing two files with File-Aid and utilities

24) Compressing the files with utility

25) IF statement

VSAM

1) What is the different types of Vsam files available and explain


2) What are all the parameters are required to create Vsam files
3) What is Alternate Index and how it will be link with the base cluster part
4) I want to read last 5 records of the vsam file

CICS

1) What is the debugging facility available in CICS


2) How you will enable the files in CICS region
3) How you will kill the transaction
4) How you will access the remote file
5) What is the difference between TSQ and TDQ
6) Whether the table entries required for the TSQ and TDQ
7) What are all the ways to initiate transaction
8) What is pseudo conversation technique and explain
9) What is quasi reentrant and reentrant programs
10) How the ATI will trigger
11) Suppose I want to make TDQ not to be read destroy, how you will achieve this thing?
12) What is the difference between physical map and symbolic map
13) While defining the map we code TIOAPFX=YES, what this parameter actually do?
14) What is mapset and map
15) What are all the different ways to place the cursor in the CICS screen
16) I have file with partial key of the record, I want to read the record can you write the code for
it?
17) I want to make newcopy of the map or program, how we can achieve this in CICS?
18) What is DEQ and ENQ
19) What are all the commands available for CICS
20) What are all cobol statements are not allowed in CICS
21) 2phase commit
22) Suppose I am modifying the name in CICS screen, can you explain with the coding how the
back end process will be run
23) Can you write the paging logic
24) I have 20 fields in one line of the CICS screen, once I enter the values in the CICS screen
Following needs to be done
1) Data needs to be in sorted order
2) Duplicates needs to be eliminated
3) Spaces , low-values should not be allowed data must enter

Example:

Input:

CODE length is 4 here in the CICS screen:

CODE: ____ FGHY DSSR FGHY ____ ZSDE ABCD ____ CVFR ZSDE

Output:

CODE: ABCD CVFR DSSR FGHY ZSDE

You might also like