Mainframe Interview Questions

Q:

If you are current on the owner of a set, what is the difference between an obtain next and obtain first in IDMS?

Answer

No difference. There is a difference between obtain first and obtain next for an area sweep, but not when current on the owner in a set.

Report Error

View answer Workspace Report Error Discuss

0 2657
Q:

EXPLAIN has output with MATCHCOLS = 0. What does it mean?

Answer

a nonmatching index scan if ACCESSTYPE = 1


 

Report Error

View answer Workspace Report Error Discuss

0 2618
Q:

Why SELECT * is not preferred in embedded SQL programs?

Answer

- If the table structure is changed ( a field is added ), the program will have to be modified.


- Program might retrieve the columns which it might not use, leading on I/O over head.


- The chance of an index only scan is lost.

Report Error

View answer Workspace Report Error Discuss

0 2594
Q:

What is currency in IDMS?

Answer

Currency is the location within the database during run-unit execution.


There are four levels of currency:


- Current of run-unit is the record occurrence of the last successful find or obtain;


- Current of record type is for the most recent of each record type;


- Current of record set is the most recent within each set 


- Current of area is within each area.

Report Error

View answer Workspace Report Error Discuss

0 2564
Q:

How does IDMS insure data integrity?

Answer

IDMS uses record locks to prevent another run-unit from updating the same record.

Report Error

View answer Workspace Report Error Discuss

0 2555
Q:

What is sqlcode -811?

Answer

SELECT statement has resulted in retrieval of more than one row.

Report Error

View answer Workspace Report Error Discuss

0 2495
Q:

What is purpose of VSAM?

Answer

VSAM acts as an interface between Application program & Operating System.

Report Error

View answer Workspace Report Error Discuss

0 2488
Q:

How do you eliminate duplicate values in DB2 SELECT?

Answer

Use SELECT DISTINCT ..... in DB2 query


 


The DISTINCT keyword can be used to return only distinct (different) values.


Syntax:


     SELECT DISTINCT column1,column2


      FROM table_name;


 

Report Error

View answer Workspace Report Error Discuss

0 2452