8/11/2019 Mainframe Question Bank
1/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
COBOL & COBOL II
Q1) Name the divisions in a COBOL program?.A1)IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.
2. What are the diferent data types avaia!e in COBOL?
A2)Alpha-numer! "#), alpha$e%! "A) an& numer! "').
". What does the INI#I$LI% ver! do? ' (A()Alpha$e%!, Alphanumer! el&* + alphanumer! e&%e& %em* are *e% % SPACES. Numer!,
Numer! e&%e& %em* *e% % ERO. FIER , OCCURS DEPENDIN/ ON %em* le0% un%u!he&.
*. What is ++ eve ,sed -or ?A)Elemen%ar le3el %em. Cann% $e *u$&3*n* 0 %her %em* "!ann% $e 4uale&), nr !an %he
$e *u$&3&e& %hem*el3e*.
. What is // eve ,sed -or ?A5)Fr !n&%n name*.
0. What is eve 00 ,sed -or ?A6)Fr RENAMES !lau*e.
+. What does the I N3IC 4a,se esta!ish ?A7)IS NUMERIC !an $e u*e& n alphanumer! %em*, *8ne& numer! + pa!9e& &e!mal %em* an&
un*8ne& numer! + pa!9e& &e!mal %em*. IS NUMERIC re%urn* TRUE 0 %he %em nl !n**%*0 :-'. ;
8/11/2019 Mainframe Question Bank
2/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1".What is !inary sear4h?A1() Sear!h n a *r%e& arra. Cmpare %he %em % $e *ear!he&
8/11/2019 Mainframe Question Bank
3/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
;EN "D=#)? ;EN -(:5 ASO G(2G mpera%3e *%m% mpera%3e *%m%
;EN OT;ER ;EN OT;ER mpera%3e *%m% mpera%3e *%m%END-EVAUATE END-EVAUATE
EVAUATE SHCODE ASO A@ EVAUATE SHCODE ASO TRUE;EN 1:: ASO TRUE ;EN 1:: ASO A@ mpera%3e *%m% mpera%3e *%m%
;EN -(:5 ASO FASE ;EN -(:5 ASO "AC) mpera%3e *%m% mpera%3e *%m%
END-EVAUATE END-EVAUATE
2:.5o6 do yo, 4ome o,t o- an @$L$# statement? ' (A2:) A0%er %he eBe!u%n 0 ne 0 %he
8/11/2019 Mainframe Question Bank
4/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
DISPA? S-TOP-RED ) ll %a9e $%e*. S8n * *%re& a* heB 3alue n %he la*% n$$le. /eneral 0rmula * INT""n2) =
1)),
8/11/2019 Mainframe Question Bank
5/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q*2) What is CO ENC?H2) Cau*e* %he %em % $e al8ne& n na%ural $un&are*. Can $e S?NC;RONIED EFT r RI/;T.
Fr $nar &a%a %em*, %he a&&re** re*lu%n * 0a*%er 0 %he are l!a%e& a% CL= ho6 do yo, de7ne the 7es re-erred to in a s,!ro,tine ?H7) Suppl %he DD !ar&* u*% a* u
8/11/2019 Mainframe Question Bank
6/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1) What is tati4 and
8/11/2019 Mainframe Question Bank
7/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
VII. Un&er CICS Call* $e%) D@2 pre!mpler "0 em$e&&e& SH u*e&), CICS %ran*la%r "0 CICS p8m), C$l !mpler, n9
e&%r. I0 D@2pr8ram, !rea%e plan $ $n&n8 %he D@RM*.
Q9) Can yo, 4a an O @ COBOL pgm -rom a @ COBOL II pgm ?H5') In nn-CICS en3rnmen%, % * p**$le. In CICS, %h* * n% p**$le.
Q0:) What are the diferen4es !et6een COBOL and COBOL II?A6:) There are a% lea*% 3e &eren!e*
CO@O II *uppr%* *%ru!%ure& pr8rammn8 $ u*n8 n lne Per0rm* an& eBpl!% *!pe%ermna%r*, I% n%r&u!e*
ne< 0ea%ure* "EVAUATE, SET. TO TRUE, CA @? CONTE#T, e%!) I% perm%* pr8ram* % $ela&e& an&
a&&re**e& a$3e %he 16-me8a$%e lne I% &e* n% *uppr% man l& 0ea%ure* "READ? TRACE,REPORT-RITER,
ISAM, E%!.), an& I% er* enhan!e& CICS *uppr%.
Q01) What is an e;pi4it s4ope terminator?A61) A *!pe %ermna%r $ra!9e%* %* pre!e&n8 3er$, e.8. IF .. END-IF, * %ha% all *%a%emen%*
$e%
8/11/2019 Mainframe Question Bank
8/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q0/) What is the inDage se4tion?A6>) The ln9a8e *e!%n * par% 0 a !alle& pr8ram %ha% Gln9*G r map* % &a%a %em* n %he !alln8
pr8ramG* le3el* !an $e *e% ra%her %han m3n8 %her a**!a%e& 3alue* % %he rela%e&
&a%a %em. "We! noteG Th* !han8e * n% ne 0 CO@O IIG* $e%%er *pe!!a%n*.)
Q+/) What is LN(#5 in COBOL II?A7>) EN/T; a!%* l9e a *pe!al re8*%er % %ell %he len8%h 0 a 8rup r elemen%ar %em.
Page % of 110
8/11/2019 Mainframe Question Bank
9/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q+9) What is the diferen4e !et6een a !inary sear4h and a seK,entia sear4h? Whatare the pertinent COBOL 4ommands?
A7') In a $nar *ear!h %he %a$le elemen% 9e 3alue* mu*% $e n a*!en&n8 r &e*!en&n8*e4uen!e. The %a$le * Ghal3e&G % *ear!h 0r e4ual %, 8rea%er %han r le** %han !n&%n*un%l %he elemen% * 0un&. In a *e4uen%al *ear!h %he %a$le * *ear!he& 0rm %p % $%%m, *
"rn!all) %he elemen%* & n% ha3e % $e n a *pe!! *e4uen!e. The $nar *ear!h * mu!h0a*%er 0r lar8er %a$le*,
8/11/2019 Mainframe Question Bank
10/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
() u*e n lne per0rm *%m% 0r CL via a Co!o program?A'() U*e a le &&1 DD **u%", n%r&r)CL statements -rom a COBOL programA') U*n8 E#EC CICS SPOO RITE"3ar-name) END-E#EC !mman&. 3ar-name * a CO@O h*%
*%ru!%ure !n%ann8 C *%a%emen%*.
Q9) (ive some advantages o- 3
8/11/2019 Mainframe Question Bank
11/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
*a, a$! p! B").%
8/11/2019 Mainframe Question Bank
12/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1:0)What is 3ede7nes 4a,se?A1:6) Re&ene* !lau*e * u*e& % all< %he *ame *%ra8e all!a%n % $e re0eren!e& $ &eren%
&a%a name* .
Q1:+)5o6 many !ytes does a s9*)4omp'" 7ed o44,py?A1:7) (@%e* "0rmula n2 = 1))
Q1:/)What is the diferent !et6een inde; and s,!s4ript?A1:>) Su$*!rp% re0er* % %he arra 0 !!urren!e ,
8/11/2019 Mainframe Question Bank
13/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A116) In u*n8 CO@O n PC
8/11/2019 Mainframe Question Bank
14/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
11' ha% * an n-lne per0rm 12' ha% * CA *%a%emen% n CO@O1' hen !an %he USIN/ phra*e $e n!lu&e& n %he !all *%a%emen% 1!' In E@CDIC, h<
8/11/2019 Mainframe Question Bank
15/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
>OB CON#3OL L$N($(>CL)
#he -oo6ing are the most AreK,enty $sDed Q,estions A$Q)G
Q1) What is a (eneration
8/11/2019 Mainframe Question Bank
16/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q9) What is the diferen4e !et6een the >OBLIB and the #LIB statements?A') The O@I@ *%a%emen% * pla!e& a0%er %he O@ *%a%emen% an& * ee!%3e 0r all $ *%ep*. I%!ann% $e pla!e& n a !a%al8e& pr!e&ure. The STEPI@ *%a%emen% * pla!e& a0%er %he E#EC*%a%emen% an& * ee!%3e 0r %ha% $ *%ep nl. Unl9e %he O@I@ *%a%emen%, %he STEPI@ !an $epla!e& n a !a%al8e& pr!e&ure.
Q1:) Name some o- the >CL statements that are not ao6ed in pro4s.?A1:) Sme 0 %he C *%a%emen%*
8/11/2019 Mainframe Question Bank
17/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q21) 5o6 do yo, 4reate a temporary dataset? Where 6i yo, ,se them?A21) Temprar &a%a*e%* !an $e !rea%e& e%her $ n% *pe!0n8 an DSNAME r $ *pe!0n8
%he %emprar le n&!a%r a* n DSN++TEMP. e u*e %hem % !arr %he u%pu% 0 ne *%ep% an%her *%ep n %he *ame $. The &a%a*e%
8/11/2019 Mainframe Question Bank
18/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q"") What is CONCL 6itho,t r,nning it?A(5) T?PERUNSCAN n %he O@ !ar& r u*e SCAN.
Q"0) What does IB(N3 do?A(6) U*e& % !p ne HSAM le % an%her. Sur!e &a%a*e% *hul& $e &e*!r$e& u*n8 S?SUT1
&&name. De*%na%n &a%a*e% *hul& $e &e*!r$e& u*n8 S?SUT2. IE@/ENR !an al* & *mere0rma%%n8 0 &a%a $ *uppln8 !n%rl !ar&* 3a S?SIN.
Q"+) 5o6 do yo, send the o,tp,t o- a COBOL program to a mem!er o- a CLs 6ith severa >OB 4ards ) in a mem!er. What happens i- Is,!mit it?
A(>) Mul%ple $* are *u$m%%e& "a* man $* a* %he num$er 0 O@ !ar&*).
Q"9) I have a COBOL program that $44epts some inp,t data. 5o6 do yo, 4ode the >CLstatement -or this?
5o6 do yo, 4ode instream data in a >CL? )A(') S?SIN DD
npu% &a%anpu% &a%a
Q*:) Can yo, 4ode instream data in a 3OC ?A:) N.
Q*1) 5o6 do yo, over4ome this imitation ?A1) One OBLIB? What is it ,sed -or? ' (A() Spe!e* %ha% %he pr3a%e l$rar "r l$rare*) *pe!e& *hul& $e *ear!he& $e0re %he
&e0aul% **%em l$rare* n r&er % l!a%e a pr8ram % $e eBe!u%e&. STEPI@ apple* nl %%he par%!ular *%ep, O@I@ % all *%ep* n %he $.
Page 1% of 110
8/11/2019 Mainframe Question Bank
19/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q**) What is order o- sear4hing o- the i!raries in a >CL? ' (A) Fr*% an pr3a%e l$rare* a* *pe!e& n %he STEPI@ r O@I@, %hen %he **%em l$rare*
*u!h a* S?S1.INI@. The **%em l$rare* are *pe!e& n %he ln9 l*%.
Q*) What happens i- !oth >OBLIB and #LIB is spe4i7ed ?A5) O@I@ * 8nre&.
Q*0) When yo, spe4i-y m,tipe datasets in a >OBLIB or #LIB= 6hat -a4tordetermines the order? ' (
A6) The l$rar
8/11/2019 Mainframe Question Bank
20/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q)
8/11/2019 Mainframe Question Bank
21/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
%rue, %he *%ep * $pa**e&. "I0 %h* an*
8/11/2019 Mainframe Question Bank
22/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q+9) 5o6 4an yo, trap a!ends in the >CL?A7>) U*e IF A@END *%a%emen% n %he C.
Q/:) 5o6 do yo, restart a step in >CL?A7') U*e RESTART*%ep name.
Q/1) 5o6 do yo, pass parameters to the program as the Ho! is !eing e;e4,ted ?A>:) @ u*n8 GparmG parame%er n eBe! *%a%emen%. %he 3alue men%ne& here *hul& $e &e!lare&
n ln9a8e *e!%n n %he pr8ram an& pr!e** %hru pr!e&ure &3*n. %h* %e!hn4ue * 3eru*e0ul 1) A !n%rl !ar& !an $e a mem$er 0 a p&* r a *e4uen%al &a%a*e% an& * u*e& 0r *%rn8 %he
&a%e el&*, Den%n* 0 VSAM le*....e%!. ?u u*e !n%rl !ar& $e!au*e u !ann% u*e an*%ream pr!e&ure n a pr!e&ure. /enerall u 5) COND * a !n&%n parame%er, !n**%* 0 2 *u$ parame%er*, 1*% - re%urn !&e 0rm %he
pre3u* *%ep, 2n& - !n&%n. I0 COND * %rue, %he *%ep n
8/11/2019 Mainframe Question Bank
23/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A>') T;E !&e IS MAIN DEADINE":7::,@,:12:>6)
Q91) 5o6 many types o- i!raries are there in >CL ?A':) $rare* are 0 %hree %pe*.1.S%em $rare* SUC; AS [email protected]%e $rare*
SPECIFIED IN A O@I@ OR STEPI@ DD STATEMENTS.(.Temprar $rare* CREATED IN APREVIOUS STEP OF T;E O@.
Q92) What , mean !y in4,de statement in >CL ?A'1) An n!lu&e *%a%emen% &en%e* a mem$er 0 a p&* r p&*e %ha% !n%an*. Th* *e% 0 C
*%a%emen%* * !alle& an n!lu&e 8rup. The **%em repla!e* %he n!lu&e *%a%emen% C?A'() !l CL statementA'>) %prun*!an !he!9* %he C 0r errr*, %prunhl& hl&* %he $ un%l 0ur%her n%!e.
Q1::)Whi4h is the most 6idey ,sed !at4h per-orman4e monitor -or CL?A1:1) I% * u*e& a* an al%erna%3e 0r STEPI@. hen
8/11/2019 Mainframe Question Bank
24/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1:")What does :C* error mean?A1:2) Th* errr * 0a!e&
8/11/2019 Mainframe Question Bank
25/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q110)What is a
8/11/2019 Mainframe Question Bank
26/127
8/11/2019 Mainframe Question Bank
27/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1:.ha% * %he 0un!%n 0 %he T?PRUN parame%er
11.ha% are %he *u$parame%er* %ha% !an $e u*e&
8/11/2019 Mainframe Question Bank
28/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Page 2% of 110
8/11/2019 Mainframe Question Bank
29/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
C,stomer In-ormation Contro ystemCIC)
I@MQ* Cu*%mer In0rma%n Cn%rl S*%em "CICS) * an n-lne %elepr!e**n8 **%em &e3elpe&$ I@M. @ pr3&n8 a *ph*%!a%e& !n%rl an& *er3!e &a%a$a*e&a%a !mmun!a%n **%em, %heappl!a%n &e3elper !an !n!en%ra%e n 0ullln8 *pe!! $u*ne** nee&* ra%her %han n
!mmun!a%n an& n%ernal **%em &e%al*. CICS all
8/11/2019 Mainframe Question Bank
30/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
CICS ha* %* .)
8/11/2019 Mainframe Question Bank
31/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q*) List the seK,en4e o- steps ,sed to a4hieve Sodi74ation in Dip eK,entiaode.T
$*)I. READNE#T !mman&II. I**ue %he END@R !mman&III. I**ue %he READ !mman&
8/11/2019 Mainframe Question Bank
32/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1:) 5o6 do yo, initiate another transa4tion? #he transa4tion initiated sho,d !e in aposition to retrieve
in-ormation pertaining to 6hi4h transa4tion has initiated it and -rom 6hi4htermina. Code the reK,ired CIC
4ommands)$1:)E#EC CICS START
INTERVA"hhmm**)TIME"hhmm**)TRANSID"[TRANQ)TERMID"[TRM1)A3Odata'area)LN(#5data'va,e)3#3$NI
8/11/2019 Mainframe Question Bank
33/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
END-E#EC.
Q1/) ention the option ,sed in the CIC 3$< 4ommand to gain a44essi!iity dire4tyto the 7e I8O area. $ss,me
COBOL'II).$1/)SET"ADDRESS OF INA/E-AREA).
Q19) Whi4h 4ommand is ,sed to reease a re4ord on 6hi4h e;4,sive 4ontro is gained?$19)E#EC CICS UNOC END-E#EC.
Q2:) 5o6 do yo, esta!ish a starting position in a !ro6se operation?$2:)E#EC CICS START@R---------- END-E#EC.
Q21) What is the option spe4i7ed in the read operation to gain m,tipe 4on4,rrentoperations on the same dataset?
$21)REHID"3alue).Q22) What is the CIC 4ommand that gives the ength o- #W$ area?$22)E#EC CICS ASSI/N
TAEN/"&a%a-3alue)END-E#EC.
Q2") What are the attri!,te va,es o- Dipper and topper 7eds?A2() ASIP, PROT.
Q2*) 5o6 do yo, set the
8/11/2019 Mainframe Question Bank
34/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q"1) Code the reated portions o- CIC8COBOL'I programs to gain addressa!iity to #W$area assigned to a
parti4,ar tasD. $ss,me that the siFe o- #W$ area is ":: !ytes. What are theadvantages i- COBOL'II is ,sed
in the pa4e o- COBOL? Code the a!ove reK,irement in COBOL'II.A(1)
CO@O- II PRO/RAM
INA/E SECTION.:1 PARMIST.
:2 FIER PIC S'">) COMP.2 TA-PTR S"'>) COMP.
1 TA-DATA-A?OUT.2 DATA-AREA PIC #"(::).
PROCEDURE DIVISION.]]].
E#EC CICS ADDRESSTA"TA-PTR)
END-E#ECSERVISE REOAD TA-DATA-A?OUT.
CO@O- II PRO/RAM
INA/E SECTION.:1 TA-DATA-A?OUT.
:5 DATA-AREA PIC #"(::).
PROCEDURE DIVISION.]]].
E#EC CICS ADDRESSTA"ADDRESS OF TA-DATA-A?OUT)
END-E#EC]]]
Q"2) Code a program meeting the -oo6ing reK,irements.UJ is a transa4tion ,sed to ret,rn in-ormation pertaining to an empoyee 6henthe SI
8/11/2019 Mainframe Question Bank
35/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
STATUS ^^^^^^^^^^^^^^^^^^^^
E#IT #
# Inpu% Fel& ^ - Ou%pu% el& "Alphanumer!)_ - Ou%pu% el& "Numer!)Mapname EMPFORMMap*e%name - EMPFORM
a$el 83en % 3aru* [name&Q el&* n %he DF;MDF ma!r ) VAUE [EMP ID [.:5 EMP-ID PIC #"().:5 FIER PIC #"6) VAUE [FOUNDQ.
:2 A@NORMA REDEFINES NORMA.:5 A@MS/ PIC #"17).
:1 EMP-IOAREA.:5 EMP-REC.
1: EMP-E? PIC ###.1: EMP-NAME PIC #"(2).1: EMP-SE# PIC #.1: EMP-DEPT PIC #"1:)1: EMP-DESI/ PIC #"5).1: EMP-SA PIC '"7).
INA/E SECTION.1 DF;COMMAREA.
:5 INPVA PIC #"().
PROCEDURE DIVISION.
Page " of 110
8/11/2019 Mainframe Question Bank
36/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
]]]..IF EI@CAEN:
E#EC CICS SENDMAP"[EMPFORMQ)MAPSET"[EMPFORMQ)
ERASEEND-E#EC.
MOVE ( TO EN/T;-OF-AREAE#EC CICS RETURN
TRANSID"[EMPSQ)COMMAREA"[SECQ)EN/T;"DATA-VAUE)
END-E#EC.
ESE IF INPVA QSECQ
E#EC CICS RECEIVEMAP"[EMPFORMQ)MAPSET"[EMPFORMQ)
END-E#EC.
E#EC CICS READDATASET"[EMPINFORQ)INTO"EMP-IOAREA)RIDFD"EMPIDI)EN/T;"EN/T;-OF-AREA)RESP"S-RCODE)
END-E#EC.
IF S-RCODE NOT DF;RESP"NORMA)MOVE [E? NOT FOUNDQ TO A@MS/QMOVE DF;@M@R? TO EMPIDA
ESEMOVE EMP-NAME TO EMPNAMEOMOVE EMP-SE# TO SE#OMOVE EMP-DESI/ TO EMPDESI/OMOVE EMP-SA TO SAAR?MOVE EMP-DEPT TO DEPARTOMOVE EMP-E? TO EMP-IDMOVE STATUS TO STATUSO.
C CIC N) S%p run
8/11/2019 Mainframe Question Bank
53/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q10")What are the " 6orDing storage 7eds ,sed -or every 7ed on the map? ' (A16() en8%h, a%%r$u%e an& npu%u%pu% el&.
Q10*)What is
8/11/2019 Mainframe Question Bank
54/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1+9)When yo, 4ompie a CIC program= the pre)4ompier p,ts an e;tra 4h,nD o- 4ode.Where does it get
in4,ded and that is it 4aed? What is its ength? ' (A17') DF;EI@, DF;COMMAREA.
Q1/:)List a the CIC ta!es and e;pain their 4ontents. ' (
A1>:) PPT SITPCT CTFCT SNTDCT SRTRCT TCT
Q1/1) I have 6ritten a CIC program. What ta!es sho,d I set,p to r,n this program? '(
A1>1) PPT, PCT, "FCT, DCT, RCT "0 nee&e&)).
Q1/2) In 6hi4h ta!e 6o,d yo, maDe an entry -or a B map? ' (A1>2) PPT
Q1/")What is the 4ontent o- the # entry? ' (A1>() en8%h, Sur!e, U*e !un%, an8, Re* !un% DF;RP num$er
Q1/*)Aor a CIC'5) U*e a /ETMAIN
Q1/0)What is the ,se o- a #7) Temp *%ra8e rea& !mman&
Q1//) I- I 4reate a #Q -rom one transa4tion= 4an I read it -rom another transa4tion? ' (A1>>) ?e*. A* ln8 a* %he run n %he *ame re8n.
Q1/9)What are e;tra partition & intra partition #') EB%ra par%%n TDH* are &a%a*e%* u*e& 0r !mmun!a%n $Gn CICS an& %her CICS@a%!h
re8n*. In%rapar%%nTDH* are 4ueue* 0r !mmun!a%n
8/11/2019 Mainframe Question Bank
55/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q19*) Is there any entry -or #Qs in CIC ta!es?A1') ?e* n %he DF;TST.
Q19)What is the ,se o- ) E#EC CICS S?NCPOINT. A**umn8 % * a U. Th*
8/11/2019 Mainframe Question Bank
56/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q21:)What is the ,sage o- ang,age in the # entry?A21:) an8ua8e n%er0a!e an& !all parame%er*
Q211)Can yo, have CIC 4ode in a 4opy!ooD? I- yes= 6hat happens d,ring 4ompiation?A211) ?e*. Nee&* % $e prepr!e**e&.
Q212)What is an $IC$ a!end?A212) Runa
8/11/2019 Mainframe Question Bank
57/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q220)Be-ore yo, 4an ,se a #emporary torage Q,e,e yo, m,st 7rst de7ne the Q,e,ename in the CIC
#emporary Q,e,e #a!e) #r,e or Aase).A226) Fal*e
Q22+)#he pro4ess o- 6riting its o6n type o- Ho,rna re4ords !y the appi4ation program=other than the a,tomati4 Ho,rnaing provided !y CIC is 4aedA227) EBpl!% urnaln8
Q22/) In order to dispay a -ormatted s4reen= a termina m,st re4eive a series o- datastream 4aed Native ode ) True
Q229)Whi4h is the CIC 4ontro program 6hi4h governs the Po6 o- 4ontro among theCIC appi4ation
programs?A22') Pr8ram Cn%rl Pr8ram.
Q2":)What is the option o- the
8/11/2019 Mainframe Question Bank
58/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2*:)What is the 4ommand ,sed to reK,est noti74ation 6hen the spe4i7ed time hase;pired?
A2:) POST
Q2*1) I-
8/11/2019 Mainframe Question Bank
59/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q20) I- yo, ,se the O#II% 4ompier option the siFe o- the program 4an !e red,4ed!y to 1:#r,e or
Aase).A256) True
Q2+)Aor m,tithreading an appi4ation program need not !e re'entrant#r,e or Aase).
A257) True
Q2/)Be-ore iss,ing an $#I 4ommand 6hat 6i !e the va,es in the IB) The &a%e an& %me a% %he %a*9 n%a%n
Q29)What is the error 4ondition that is set 6hen the 7e spe4i7ed in the N$ optionis not in the AC#?
A25') P/MIDERR
Q20:)Aor prote4ting a transa4tion ,sing the transa4tion se4,rity -,n4tion= the t6othings that m,st !e done areG
1. in the N# entry o- the ,ser 6ho yo, 6hi4h to ao6 to a44ess a prote4tedtransa4tion= spe4i-y C#En2. In the C# entry o- the transa4tions that yo, 6ish to prote4t spe4i-y the#3$NCn. #r,e or Aase)
A26:) True
Q201)What are the vario,s types o- a44esses that 4an !e ao6ed !y the 3@3Qoption o- the
8/11/2019 Mainframe Question Bank
60/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q209)What is the option that is ,sed to erase a ,nprote4ted 7eds d,ring a N< $operation?
A26') ERASEAUP
Q2+:)What is the CIC 4ommand that is ,sed to re4eive the ,n'-ormatted data -rom the
termina or ogi4a ,nit o- a 4omm,ni4ation net6orD?A27:) RECEIVE
Q2+1)What is the 4ommand -or reading a re4ord -orm a #Q?A271) READH TS, READH
Q2+2)What 6i happen= i- an o,t'o-'range or negative va,e is spe4i7ed in the LN(#5option o- the N2) T 0e%!h a pr8ram, %a$le r map % %he man *%ra8e.
Q2/")What is the CIC Command that is ,sed -or reading a re4ord -rom the #() READH
Q2/*)LN(33= NO#$#5 and (I) Fal*e
Q2/)Whi4h o- the -oo6ing are re4overa!e CIC reso,r4es?A2>5) Da%a le* an& &a%a $a*e*, In%rapar%%n TDH*, AuBlar TSH*
Q2/0)Whi4h is the program 6hi4h determines 6hether a transa4tion sho,d !erestarted ?
A2>6) DT@
Q2/+)What is the 4ommand ,sed -or re4eiving a map -rom a termina?A2>7) RECEIVE MAP
Q2//)#he mode o- a4hieving 4onversation 6ith the ,ser= !y sending him the messageand 6hie 6aiting -or his
response= -reeing the system reso,r4es is 4aedA2>>) P*eu&-!n3er*a%n
Q2/9)Whi4h is the 4ommand ,sed -or terminating a !ro6se operation?A2>') END@R
Q29:)What is the primary -,n4tion o- the ro4essing rogram #a!e #)?A2':) T re8*%er all pr8ram* an& map*
Q291)yn4 points 4annot !e reK,ested !y the appi4ation programs #r,e or Aase).A2'1) Fal*e
Q292)Whi4h is the 4ommand that is ,sed to d,mp the main storage areas reated to atasD?
A2'2) DUMP
Q29")What is the CIC 4ommand that is ,sed to 4opy a s4reen image o- a termina intoanother termina?
A2'() ISSUE COP?
Q29*)What is the name o- the og 6hi4h 4ontains the in-ormation needed to restart thesystem= in4,ding the tasD syn4 point in-ormation and system a4tivity Dey points=snapshots o- Dey system ta!es= et4.
A2') Dnam! 8
Q29)#he IB 7ed 6hi4h gives the ast CIC 4ommand e;e4,ted isA2'5) EI@RCODE
Q290)#he 3$< 4ommand 6ith IN#O option 6i read the re4ord spe4i7ed into the dataarea spe4i7ed #r,e or
-ase).A2'6) Fal*e
Page #1 of 110
8/11/2019 Mainframe Question Bank
62/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q29+)#he attri!,te 4hara4ter is an visi!e 1 !yte 4hara4ter 6hi4h pre4edes a s4reen7ed and determines the
4hara4teristi4s o- the 7ed #r,e or Aase).A2'7) True
Q29/)What is the -,n4tion o- the #ermina Contro ta!e?A2'>) T re8*%er all CICS %ermnal*
Q299)Whi4h is the CIC 4ontro program that provides 4omm,ni4ation servi4es !et6een,ser 6ritten appi4ation
programs and terminas?A2'') Termnal Cn%rl Pr8ram
Q"::)CIC Command eve isA(::) < le3el 3er*n 0 CICS ma!r le3el
Q":1)#Qs 4an !e 6ritten in the ain storage or $,;iiary storage #r,e or Aase).A(:1) True
Q":2)6hat is diferen4e !et6een 4a and inD ?A(:2) In !a*e 0 !all ,
8/11/2019 Mainframe Question Bank
63/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
@) A pr8ram a%%emp%e& % u*e a map %ha% * n% &ene& n %he PCT "Pr8ram Cn%rlTa$le).C) A *e!ur% 3la%n ha* !!urre&. The pera%r * n% &ene&
8/11/2019 Mainframe Question Bank
64/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q"1*)What is $3$$BN< in CIC?A(1) I% !!ur*
8/11/2019 Mainframe Question Bank
65/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
$e all!a%e&. A %a*9 &e* n% en& un%l a RETURN *%a%emen% * eBe!u%e&. hle n IN!mman&, pr8ram !n%rl
re*ume* %* n*%ru!%n 0ll) The ph*!al map*e% * a la& m&ule u*e& % map %he &a%a % %he *!reen a% eBe!u%n %me.
The *m$l! map * %he a!%ual !p$9 mem$er u*e& n %he pr8ram % re0eren!e %he npu% an&u%pu% el&* n %he *!reen.Q"29)5o6 #o et
8/11/2019 Mainframe Question Bank
66/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q""")What 6i !e the ength o- the ei!4aen= i- the transa4tion is ,sed to CIC 7rsttime?
A((() The len8%h
8/11/2019 Mainframe Question Bank
67/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1(. I0 a ph*!al map ha* *B 3ara$le el&* an& nne !n*%an% el&*, h< man el&* mu*% %he*m$l! map ha*
1. In
8/11/2019 Mainframe Question Bank
68/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
5'. I0 a ph*!al map ha* *B 3ara$le el&* an& nne !n*%an% el&* , h< man el&* mu*% %he*m$l! map ha*
6:. In 2. ha% * %he &eren!e $e%(. ha% are %he ( $ra& . ha% * %he &eren!e $e%5. ha% happen* 0 a DEETEH TS !mman& * eBe!u%e& >6. h * %he %ermnal ID 0%en u*e& a* a par% 0 a TSH >7. ha% * %he maBmum len8%h 0 a TSH name >>. ha% * %he maBmum len8%h 0 a TDH name >'. I* % ne!e**ar % &ene a TSH n a CICS %a$le ':. Can u rea& %he 5%h %em 0 a TDH '1. here are TDHQ* &ene& '2. Can u &ele%e an n&3&ual re!r& 0rm a TSH r a TDH '(. Can u up&a%e a re!r& n a TDH '. h * % ne!e**ar % up&a%e PPT '5. In
8/11/2019 Mainframe Question Bank
69/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1:5. ha% * &eren!e $e%
8/11/2019 Mainframe Question Bank
70/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
8/11/2019 Mainframe Question Bank
71/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
m&0 %he 3alue 0 %he &a%a %ha% * re%urne& n a 4uer. There are !lumn 0un!%n* %ha% a!%n all 0 %he 3alue* 0 %he *ele!%e& r
8/11/2019 Mainframe Question Bank
72/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q) Can one add 4o,mns to a ta!e a-ter it has !een de7ned?A5) ?e*, ne !an a&& !lumn % a %a$le a0%er % ha* $een &ene& $ u*n8 %he SH ATER TA@E
*%a%emen%.
Q0) Where in a ta!e are added 4o,mns o4ated?
A6) The ne< !lumn* are a&&e& % %he en& 0 %he %a$le.
Q+) $-ter a ta!e is de7ned= 4an 4o,mns !e removed?A7) The nl
8/11/2019 Mainframe Question Bank
73/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A17) A re*ul% %a$le * %he pr&u!% 0 a 4uer a8an*% ne r mre %a$le* r 3e
8/11/2019 Mainframe Question Bank
74/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q"1) 5o6 is the B#3 Dey6ord ,sed in QL?A(1) SU@STR * u*e& 0r *%rn8 manpula%n
8/11/2019 Mainframe Question Bank
75/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q*2) What is a t,pe?A2) A %uple * an n*%an!e 0 &a%a
8/11/2019 Mainframe Question Bank
76/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
QL#$# is a standard set o- error messages and 6arnings in 6hi4h the 7rst t6o4hara4ters de7nes the 4ass
and the ast three de7nes the s,!4ass o- the error. Whi4h o- the -oo6ingQL#$# 4odes is interpreted as
VNo data ret,rnedV?Che4D one that appies the !est)A). ::BBB
@). :1BBBC). :2BBBD). 22BBBE). 2ABBB
A7) C. :: - * *u!!e**0ul !mple%n, :1 - ) ->1> %me *%amp m*ma%!h
-1>:
8/11/2019 Mainframe Question Bank
77/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q0) What is an image 4opy?A56) I% * an eBa!% repr&u!%n 0 all r par% 0 a %a$le*pa!e. D@2 pr3&e* u%l% pr8ram* % ma9e
0ull-ma8e !pe* "%!p %he en%re %a$le*pa!e) r n!remen%al ma8e !pe* % !p nl %h*e pa8e* %ha% ha3e
$een m&e& *n!e %he la*%
ma8e !p.
Q+) What is meant !y an inde;?A57) An n&eB * a *e% 0 r< &en%er* "RID*) r pn%er* %ha% are l8!all r&ere& $ %he 3alue* 0
a !lumn %ha% ha* $een *pe!e& a* $en8 an n&eB. In&eBe* pr3&e 0a*%er a!!e** % &a%a an&!an en0r!e un4uene** n %he r< n a %a$le.
Q/) What is an inde; Dey?A5>) I% * a !lumn r *e% 0 !lumn* n a %a$le u*e& % &e%ermne %he r&er 0 n&eB en%re*.
Q9) What is a Hoin?A5') A n * a rela%nal pera%n %ha% all) @ul%-n ma%hema%!al 0un!%n* 0r u*e n SEECT !lau*e.
Q09) 5o6 do yo, 7nd the ma;im,m va,e in a 4o,mn? ' (A6') U*e SEECT MA#"...
Page $$ of 110
8/11/2019 Mainframe Question Bank
78/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q+:) Can yo, ,se $ on a C5$3 4o,mn?A7:) ?ES.
Q+1) y QL statement LC# $@( $L$3E) A3O '#$BL yieds ina44,rateres,ts. Why?
A71) @e!au*e SAAR? * n% &e!lare& % ha3e NullQ* an& %he emplee* 0r :) IE * u*e& 0r par%al *%rn8 ma%!he*. GdG " 0r a *%rn8 0 an !hara!%er ) an& G\G "0r an
*n8le !hara!%er ) are %he%() /ROUP @? par%%n* %he *ele!%e& r
8/11/2019 Mainframe Question Bank
79/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q/*) Consider the empoyee ta!e 6ith 4o,mn 3O>C# n,a!e. 5o6 4an yo, get a isto- empoyees 6ho are not assigned to any proHe4t?
A>) SEECT EMPNO FROM EMP ;ERE PROECT IS NUJ
Q/) What is the res,t o- this K,ery i- no ro6s are see4tedGSEECT SUM"SAAR?) FROM EMP ;ERE HUAGMSCGJ
A>5) NU
Q/0) Why LC# is not pre-erred in em!edded QL programs?Fr %hree rea*n*I0 %he %a$le *%ru!%ure * !han8e& "a el& * a&&e&), %he pr8ram
8/11/2019 Mainframe Question Bank
80/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
8/11/2019 Mainframe Question Bank
81/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1") On the 4reate ta!espa4e= 6hat does the CLO parameter do?A1() COSE ph*!all !l*e* %he %a$le*pa!e
8/11/2019 Mainframe Question Bank
82/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A2) I%
8/11/2019 Mainframe Question Bank
83/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A(6) Th* * a *e3en par% 3alue %ha% !n**%* 0 a &a%e "mm&&) an& %me"hhmm** an&m!r*e!n&*).
Q"+) What is meant !y a ,nit o- re4overy?A(7) Th* * a *e4uen!e 0 pera%n*
8/11/2019 Mainframe Question Bank
84/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1) What is
8/11/2019 Mainframe Question Bank
85/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q02) 5o6 is a typi4a ) In USERID.PAN\TA@E
Q09) L$IN has o,tp,t 6ith $#C5COL :. What does it mean? ' (A6') A nnma%!hn8 n&eB *!an 0 ACCESST?PE I.
Q+:) 5o6 do yo, do the L$IN o- a dynami4 QL statement?A7:) There are %
8/11/2019 Mainframe Question Bank
86/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q+*) When do yo, spe4i-y the isoation eve? 5o6?A7) Durn8 %he @IND pr!e**"ISOATION EVE * a parame%er 0r %he $n& pr!e**). ISOATION
CSRR )...
Q+) I ,se C and ,pdate a page. Wi the o4D !e reeased a-ter I am done 6ith thatpage?
A75) N.
Q+0) What are the vario,s o4Ding eves avaia!e?A76) PA/E, TA@E, TA@ESPACE
Q++) 5o6 does 1) N. T l!9 a 3e
8/11/2019 Mainframe Question Bank
87/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
2. A3& !*% 0 a lar8e $n&(. A3& %he en%re %ran*a!%n $en8 una3ala$le &urn8 $n& an& au%ma%! re$n& 0 a plan. Mnme 0all$a!9 !mpleB%e* 0 !han8e* re*ul% n an errr.
Q/9) What is a 4oe4tion?A>') A u*er &ene& name %ha% * %he an!hr 0r pa!9a8e*. I% ha* n% ph*!al eB*%en!e. Man
u*a8e * % 8rup pa!9a8e*.
Q9:) In AI s,ppose yo, 6ant to see4t ma;im,m o- 1::: ro6s= !,t the see4tret,rns ony 2:: ro6s. What are the 2 QLCO) S'") COMP.
Q99) What does it mean i- the n, indi4ator has '1= := '2? ' (A'') -1 %he el& * nullJ : %he el& * n% nullJ -2 %he el& 3alue * %run!a%e&
Q1::)5o6 do yo, insert a re4ord 6ith a n,a!e 4o,mn?A1::) T n*er% a NU, m3e -1 % %he null n&!a%r, T n*er% a 3al& 3alue, m3e : % %he null
n&!a%r
Q1:1)What is 3N#$#? ' (A1:1) A D@2 u%l% u*e& % !lle!% *%a%*%!* a$u% %he &a%a 3alue* n %a$le*
8/11/2019 Mainframe Question Bank
88/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1:2)When 6i yo, 4hose to r,n 3N#$#?A1:2) A0%er a la&, r a0%er ma** up&a%e*, n*er%*, &ele%e*, r a0%er REOR/.
Q1:")(ive some e;ampe o- statisti4s 4oe4ted d,ring 3N#$#?A1:() Num$er 0 r
8/11/2019 Mainframe Question Bank
89/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q11)What does the sK4ode o- '/1/ pertain to? ' (A115) Th* * 8enera%e&
8/11/2019 Mainframe Question Bank
90/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q12)What is the diferen4e !et6een ENONE and $LI$?A125) S?NON?M * &rppe&
8/11/2019 Mainframe Question Bank
91/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
A1(6) D$2 re!r&* n0rma%n 0r %* pera%n n a !a%al8 ) e* p**$le. un%l %he up&a%n r *ele!%n * !mm%%e& &$2 %a$le
8/11/2019 Mainframe Question Bank
92/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1:)Can 6e de4are
8/11/2019 Mainframe Question Bank
93/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q10)Whats the ma;im,m n,m!er o- vo,mes that 4an !e added to a #O(3O?A165) The an*
8/11/2019 Mainframe Question Bank
94/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q1+9)5o6 do yo, de4are a host varia!e in COBOL) -or an attri!,te named emp'nameo- type @$3C5$32) ?
A17') :1 EMP-/RP. ' E-EN PIC S'") COMP. ' E-NAME PIC #"25).
Q1/:)What is the ma;im,m n,m!er o- ta!es that 4an !e stored on a artitioned #a!epa4e ?
A1>:) ONE
Q1/1)Name the diferent types o- #a!e spa4es.A1>1) Smple Ta$le Spa!e, Se8men%e& Ta$le Spa!e an& Par%%ne& Ta$le Spa!e
Q1/2)6hat are the ma;. & min. no. o- partitions ao6ed in a partition ta!espa4e?A1>2) mnmum * . maBmum * 6.
Q1/")6hat is the ma;im,m n,m!er o- ta!es that 4an !e Hoined ?A1>() 0%een
Q1/*)What te4hniK,e is ,sed to retrieve data -rom more than one ta!e in a singe QLstatement?
A1>) The n *%a%emen% !m$ne* &a%a 0rm mre %ha% %5) I% &re!%* D@2 % eB%ra!% &a%a 0rm r') Nrmala%n * a &e*8n pr!e&ure 0r repre*en%n8 &a%a n %a$ular 0rma%. The 3e nrmal
0rm* are pr8re**3e rule* % repre*en% %he &a%a
8/11/2019 Mainframe Question Bank
95/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q19)What is a vie6? Why ,se it?$19) A 3e< * a 3r%ual %a$le ma&e up 0 &a%a 0rm $a*e %a$le* an& %her 3e
8/11/2019 Mainframe Question Bank
96/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2:/)What is the signi74an4e o-
8/11/2019 Mainframe Question Bank
97/127
8/11/2019 Mainframe Question Bank
98/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2":)What is deado4D?$2":) Dea&l!9 !!ur*
8/11/2019 Mainframe Question Bank
99/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2*2)Compare a s,!see4t to a Hoin?$2*2) An *u$*ele!% !an $e re
8/11/2019 Mainframe Question Bank
100/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2*)What is the p,rpose o- the
8/11/2019 Mainframe Question Bank
101/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q200)What
8/11/2019 Mainframe Question Bank
102/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q2+)5o6 does the pro4essing o- a 4orreated s,!K,ery difer -rom a non 4orreateds,!K,ery?
$2+)The *u$4uer n a !rrela%e& *u$4uer * ree3alua%e& 0r e3er r< 0 %he %a$le r 3e) I% &ene* %he !r**-re8n an& !r**-**%em *harn8 !apa$l%e* 0 %he &a%a*e%. Sn%aB *S;R"Cr3alue, CS3alue) 3alue 1 mean* mul%ple rea& OR *n8le
8/11/2019 Mainframe Question Bank
116/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
Q/1)6hat is a Base C,ster?A>1) The In&eB an& &a%a !mpnen%* 0 a SDS
Q/2) I- AC1:: 1::) is spe4i7ed does it mean that !oth the 4ontro interva and 4ontroarea 6i !e e-t empty !e4a,se 1:: o- !oth CI and 4a are spe4i7ed to !e empty?
A>2) N, %he
8/11/2019 Mainframe Question Bank
117/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
(. The PRINT !mman& prn%* @$ data sets, non'@$ data setsan& 4ataogs.. The &e0aul% prn% 0rma% 0r u%pu% *
8/11/2019 Mainframe Question Bank
118/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1>. Fr a SDS, %he lar8er %he &a%a CA *e, %he *maller %he num$er 0 n&eB CI*. "F)1'.e !ann% a!!e** 3ara$le-len8%h $l!9e& re!r&* n VSAM. "F)2:. MCAT !n%an* pn%er* % **%em &a%a *e%* an& u*er !a%al8*. "T)21. hle !rea%n8 VSAM &a%a *e%*, pr3*n 0 !mpnen% name* * a mu*%. "F)22. O@CAT &en%e* a &e0aul% !a%al8 0r a *n8le $ *%ep. "F)2(.There * a ne-%-ne !rre*pn&en!e $e%
8/11/2019 Mainframe Question Bank
119/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
6(. T en*ure rea& n%e8r% %he appl!a%n pr8ram mu*% !&e ENHDEH. "T)6. Fr a &a%a *e% . VSAM all!a%e* n&eB $uer* 0r all !lu*%er %pe*, e3en 0 %he $uer* are ne3er u*e&."T)6'. @UFND an& @UFNI are pre0era$le % @UFFERSPACE. "T)7:. STRNO * u*e& 0r *harn8 &a%a *e%* a!r** re8n*. "T)71. Da%a $uer* an& !n%rl $l!9* are all!a%e& $el< 16M $ &e0aul%. "T)72. ar8e !n%rl n%er3al* &e!rea*e 3r%ual *%ra8e re4uremen% 0r $uer*. "F)7(. @uer *pa!e *pe!e& a% AC@ 3err&e* %he &ene& 3alue, 0 %he AC@ 3alue * mre. "F)7. The &e0aul% 0r DEFINE CUSTER * ERASE. "F)75. A lar8e per!en%a8e 0 unu*e& CI 0ree *pa!e !au*e* a&&%nal IO*
8/11/2019 Mainframe Question Bank
120/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
1) h!h VSAM !lu*%er* *uppr% nl Be& len8%h re!r&* "$)a) DS
) RRDS*) ESDS+) SDS
2) FREESPACE !an $e *pe!e& 0r ) Al%erna%e In&eB * a *pe!al %pe 0 "a)a) SDS
) ESDS*) RRDS+) Nne
') Spe!0n8 CIS":'6) a% %he !lu*%er le3el 0r a SDS re*ul%* n "!)a) VSAM 8nrn8 %he *pe!!a%n
) Da%a an& n&eB CIS 9 ea!h*) Da%a CIS 9J n&eB CIS *ele!%e& $ VSAM
Page 120 of 110
8/11/2019 Mainframe Question Bank
121/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
+) In&eB CIS J &a%a CIS *ele!%e& $ VSAM
1:)hen &enn8 a SDS, :)
) ":>6 (26::)*) "1:: (26::)+) ":>' :>')
12) I0 %he 9e 0 a SDS re!r& $e8n* n %he *e!n& el& "r*% el& * 25 $%e* ln8), %he *e% n%heE?S parame%er * "a)a) 2
) 25*) 26+) Nne
1()Da%a r8ana%n n SDS * "a)a) INDE#ED
) NUM@ERED*) INEAR+) NONINDE#ED
1)The &e0aul% !lu*%er %pe * "&)a) ESDS
) RRDS*) DS+) SDS
15)VOUMES parame%er !an $e *pe!e& a% "!)a) !lu*%er le3el
) &a%a le3el an& n&eB le3el*) All %he a$3e+) Nne
16)The RECORDSIE parame%er !ann% $e !&e& 0r "!)a) ESDS
) RRDS*) DS+) SDS
17)The &e0aul% PRINT 0rma% * "$)a) Chara!%er
) Dump*) ;eBa&e!mal+) Nne
1>)h!h 0 %he 0ll
8/11/2019 Mainframe Question Bank
122/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
*) FROMNUM@ER+) SIPe) Nne
1')The REPACE parame%er !au*e* "!)a) SDS re!r&* % $e repla!e& $ an npu% re!r&
8/11/2019 Mainframe Question Bank
123/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
*) C, !a%al8, pr8ram+) !a%al8, pr8ram, Ce) Nne
27)VSAM re4ue*% ma!r* "e.8., /ET, PUT) pn% %
8/11/2019 Mainframe Question Bank
124/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
e) Nne
()VERIF? !ann% $e u*e& 0r "!)a) Emp% &a%a *e%
) DS*) a an& $
+) Nne
(5)Fr a &a%a *e% &ene&
8/11/2019 Mainframe Question Bank
125/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
2)An al%erna%e n&eB !an $e &ene& 0r )%h ;@ACDS %he u*e 0 ap*%rphe* % en!l*e %he &*name *
"$)a) Re4ure&
) U*e& % eB!lu&e %he TSO & a* %he h8h le3el 4ualer*) Re4ure& nl 0 ne r mre *e8men%* are *pe!e& 8ener!all+) N% all
8/11/2019 Mainframe Question Bank
126/127
COBOL, JCL, CICS, DB2, IMS & VSAM (QUESTION BANK)
$ns6er the -oo6ing !riePyG
1. Deren%a%e $e%
8/11/2019 Mainframe Question Bank
127/127