Mainframe Interview Questions

Q:

How do you insert a record with a nullable column?

Answer

To insert a NULL, move -1 to the null indicator


To insert a valid value, move 0 to the null indicator


 

Report Error

View answer Workspace Report Error Discuss

0 2556
Q:

In the JCL, how do you define the files referred to in a subroutine ?

Answer

Supply the DD cards just as you would for files referred to in the main program.

Report Error

View answer Workspace Report Error Discuss

0 2519
Q:

Explain the difference among the EXEC LINK, EXEC XCTL and Cobol II static call statements in CICS?

Answer

- Use a COBOL II CALL statement to invoke a subprogram. This method is transparent to CICS, which sees only the one load module. 


- EXEC LINK is similar to a call; it invokes a separate CICS program and ends with a RETURN to the invoking program


- EXEC XCTL which transfers control to another CICS program and does not get control 


back. 


COBOL II allows for static calls which are more efficient than the LINK instruction which establishes a new run-unit. 

Report Error

View answer Workspace Report Error Discuss

0 2488
Q:

What is a DB2 plan?

Answer

An application plan or package is generated by the bind to define an access path. 

Report Error

View answer Workspace Report Error Discuss

0 2483
Q:

How does DB2 determine what lock- size to use?

Answer

1. Based on the lock-size given while creating the table space


2. Programer can direct the DB2 what lock-size to use


3. If lock - size ANY is specified, DB2 usually chooses a lock-size of PAGE

Report Error

View answer Workspace Report Error Discuss

0 2478
Q:

What happens when a CICS command contains the NOHANDLE option?

Answer

- NOHANDLE is an option that can be specified along with abnormal condition during program execution.


- When the exception occurs, no action is performed during execution of NOHANDLE command.


- The abnormal condition is ignored, even the EXEC CICS HANDLE condition exist.


- The abnormal condition is also ignored when EXEC CICS IGNORE condition is tested.


- The previous HANDLE CONDITION for other commands will not be effected with NOHANDLE option.

Report Error

View answer Workspace Report Error Discuss

0 2455
Q:

What is an OOK-Rec in IDMS?

Answer

An OOK-Rec is a one of a kind record set, used to get to another record set.

Report Error

View answer Workspace Report Error Discuss

0 2434
Q:

What divisions, sections and paragraphs are mandatory for a COBOL program?

Answer

IDENTIFICATION DIVISION and PROGRAM-ID paragraph are mandatory for a compilation error free COBOL program.

Report Error

View answer Workspace Report Error Discuss

0 2418