Font size
WorksheetsMETANOIA-Mainframe
Total questions: 25
Worksheet time: 4mins
CICS -
Which type of file can be processed in CICS?
VSAM-KSDS only
Both VSAM-KSDS and Sequential
Sequential only
Files cannot be processed
CICS -
In CICS program, which Attention Identifier key traps the PAUSE-BREAK key?
DFHENTER
DFHCLEAR
DFHPA1
DFHPF5
Which CICS command is used to send map to screen?
CEMT
CECI
CEBR
CEDF
In CICS, how do transfer command is used to pass the control from one program to another at the same level ?
CALL 'PGM'
XCTL 'PGM'
LINK 'PGM'
CECI 'PGM'
S0C7 is an error in batch COBOL program. What is the corresponding error code in CICS?
S04E
AICA
APCT
ASRA
COBOL-Size definition of Linkage section
S9(4) COMP
S9(4) COMP3
S9(5) COMP2
9(2)
COBOL-Which is invalid form of PERFORM operation
PERFORM 5 TIMES
MOVE A TO B
END-PERFORM
PERFORM 1 BY 1 UNTIL IDX > 5
MOVE A TO B
END-PERFORM
PERFORM IF IDX => 5
MOVE A TO B
END-PERFORM
PERFORM UNTIL IDX > 5
COMPUTE IDX = IDX + 1
MOVE A TO B
END-PERFORM
COBOL-Variable-A PIC S9(6) COMP-3.
What is the size of Variable-A?
6 bytes
7 bytes
4 bytes
3 bytes
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?
10
7
NONE
BOTH
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?
10
7
NONE
BOTH
JCL-Which utility is used to define a GDG?
IEBGENER
IEBCOPY
IEFBR14
IDCAMS
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?
CREATED
DELETED
STEP01 abends
CATALOG
JCL-
Requirement is to start a job execution from a particular step.
Where is the RESTART parameter specified?
STEP
JOB
BOTH
NONE
JCL-
//STEPA EXEC PGM=PROGA
//STEPB EXEC PGM=PROGB,COND=(0,EQ)
RC of STEPA is 04.
Which STEPS will be executed?
Only STEPA
Only STEPB
Both STEPA & STEPB
JCLERR
JCL-
Job execution terminates after it encounters below statement.
RESTART
END JOB
/*
//
VSAM-KSDS can be defined using which utility?
IDCAMS
IEBGENER
IEFBR14
IEBCOPY
VSAM-Which utility is used to copy data from flat file to KSDS file?
IEBCOPY
IEBEDIT
ICETOOL
IDCAMS
VASM-KSDS is empty.
Copy from KSDS to DUMMY file is executed.
What is the return code of the step?
00
04
08
-04
VSAM-Read using full key.
Which ACCESS mode is used?
START
DYNAMIC
RANDOM
SEQUENTIAL
VSAM-We can access data in KSDS sequentially.
YES
NO
MAYBE
NONE
DB2 -
In a COBOL-DB2 program, More than one row retrieved in SELECT INTO ?
No SQL error
100
-805
-811
DB2 -
SQLCODE=-805 is received for which type of error?
Opening cursor that is already open
DBRM or package not found in plan
More than one row retrieved in SELECT INTO
Deadlock or timeout. Rollback has been done
DB2 -
COBOL-DB2 program PIC clause of NULL indicator?
S9(5) COMP3
S9(3) COMP
S9(4) COMP
9(6) COMP2
DB2 -
COBOL-DB2 program abends in middle of a transaction.
What happens next?
COMMIT
NONE
Both
ROLLBACK
DB2 -
In which division in COBOL can we define a cursor? More than 1 answer possible.
IDENTIFICATION DIVISION
ENVIRONMENT DIVISION
DATA DIVISION
PROCEDURE DIVISION
