wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

METANOIA-Mainframe

Total questions: 25

Worksheet time: 4mins

Name
Class
Date
1.

CICS -

Which type of file can be processed in CICS?

a)

VSAM-KSDS only

b)

Both VSAM-KSDS and Sequential

c)

Sequential only

d)

Files cannot be processed

2.

CICS -

In CICS program, which Attention Identifier key traps the PAUSE-BREAK key?

a)

DFHENTER

b)

DFHCLEAR

c)

DFHPA1

d)

DFHPF5

3.

Which CICS command is used to send map to screen?

a)

CEMT

b)

CECI

c)

CEBR

d)

CEDF

4.

In CICS, how do transfer command is used to pass the control from one program to another at the same level ?

a)

CALL 'PGM'

b)

XCTL 'PGM'

c)

LINK 'PGM'

d)

CECI 'PGM'

5.

S0C7 is an error in batch COBOL program. What is the corresponding error code in CICS?

a)

S04E

b)

AICA

c)

APCT

d)

ASRA

6.

COBOL-Size definition of Linkage section

a)

S9(4) COMP

b)

S9(4) COMP3

c)

S9(5) COMP2

d)

9(2)

7.

COBOL-Which is invalid form of PERFORM operation

a)

PERFORM 5 TIMES

MOVE A TO B

END-PERFORM

b)

PERFORM 1 BY 1 UNTIL IDX > 5

MOVE A TO B

END-PERFORM

c)

PERFORM IF IDX => 5

MOVE A TO B

END-PERFORM

d)

PERFORM UNTIL IDX > 5

COMPUTE IDX = IDX + 1

MOVE A TO B

END-PERFORM

8.

COBOL-Variable-A PIC S9(6) COMP-3.

What is the size of Variable-A?

a)

6 bytes

b)

7 bytes

c)

4 bytes

d)

3 bytes

9.

COBOL-

IF A > B

CONTINUE

ELSE

NEXT SENTENCE

END-IF


DISPLAY A.

DISPLAY B.

Which of the variables will be printed if A = 10, B=7?

a)

10

b)

7

c)

NONE

d)

BOTH

10.

COBOL-

IF A > B

CONTINUE

ELSE

NEXT SENTENCE

END-IF


DISPLAY A.

DISPLAY B.

Which of the variables will be printed if A = 7, B=10?

a)

10

b)

7

c)

NONE

d)

BOTH

11.

JCL-Which utility is used to define a GDG?

a)

IEBGENER

b)

IEBCOPY

c)

IEFBR14

d)

IDCAMS

12.

JCL-

//STEP01 EXEC PGM=IEFBR14

//DD01 DD DSN=FILEA,DISP=(MOD,DELETE,DELETE).

FILEA is already present.

After STEP01 is executed, what is status of FILEA?

a)

CREATED

b)

DELETED

c)

STEP01 abends

d)

CATALOG

13.

JCL-

Requirement is to start a job execution from a particular step.

Where is the RESTART parameter specified?

a)

STEP

b)

JOB

c)

BOTH

d)

NONE

14.

JCL-

//STEPA EXEC PGM=PROGA

//STEPB EXEC PGM=PROGB,COND=(0,EQ)

RC of STEPA is 04.

Which STEPS will be executed?

a)

Only STEPA

b)

Only STEPB

c)

Both STEPA & STEPB

d)

JCLERR

15.

JCL-

Job execution terminates after it encounters below statement.

a)

RESTART

b)

END JOB

c)

/*

d)

//

16.

VSAM-KSDS can be defined using which utility?

a)

IDCAMS

b)

IEBGENER

c)

IEFBR14

d)

IEBCOPY

17.

VSAM-Which utility is used to copy data from flat file to KSDS file?

a)

IEBCOPY

b)

IEBEDIT

c)

ICETOOL

d)

IDCAMS

18.

VASM-KSDS is empty.

Copy from KSDS to DUMMY file is executed.

What is the return code of the step?

a)

00

b)

04

c)

08

d)

-04

19.

VSAM-Read using full key.

Which ACCESS mode is used?

a)

START

b)

DYNAMIC

c)

RANDOM

d)

SEQUENTIAL

20.

VSAM-We can access data in KSDS sequentially.

a)

YES

b)

NO

c)

MAYBE

d)

NONE

21.

DB2 -

In a COBOL-DB2 program, More than one row retrieved in SELECT INTO ?

a)

No SQL error

b)

100

c)

-805

d)

-811

22.

DB2 -

SQLCODE=-805 is received for which type of error?

a)

Opening cursor that is already open

b)

DBRM or package not found in plan

c)

More than one row retrieved in SELECT INTO

d)

Deadlock or timeout. Rollback has been done

23.

DB2 -

COBOL-DB2 program PIC clause of NULL indicator?

a)

S9(5) COMP3

b)

S9(3) COMP

c)

S9(4) COMP

d)

9(6) COMP2

24.

DB2 -

COBOL-DB2 program abends in middle of a transaction.

What happens next?

a)

COMMIT

b)

NONE

c)

Both

d)

ROLLBACK

25.

DB2 -

In which division in COBOL can we define a cursor? More than 1 answer possible.

a)

IDENTIFICATION DIVISION

b)

ENVIRONMENT DIVISION

c)

DATA DIVISION

d)

PROCEDURE DIVISION