D 1 JCL
D 1 JCL
CL
ChapLer1
1 CreaLe varlable lengLh daLa wlLh Lhe followlng aLLrlbuLe
1he daLa seL should conLaln varlable lengLh record
of 80 110 120 8LkSlZL 1200 CrganlzaLlon S
Pow wlll you declde Lhe L8LCL slze ln Lhls case?
Ans as lL ls a varlable lengLh record 4 byLes geL added Lo Lhe record 1hus 84114124
LRECL slards lor |og|ca| record |erglr.
ll's lre record |erglr ol a l||e. For var|ao|e |erglr l||e,LRECL srou|d oe 1 oyles rore.
28elow glven ls snap shoL of 32 opLlon
Average record unlL (M k or u)
rlmary quanLlLy 3 (ln above unlLs)
Secondary quanLlLy 3 (ln above unlLs)
ulrecLory blocks 0 (Zero for sequenLlal daLa seL) *
8ecord formaL
8ecord lengLh
8lockslze
uaLa seL name Lype (llbraryhfspdslargebaslc*)
WhaL wlll happen lf daLaseL name Lype ls large?
Ans Large lorral dala sels are prys|ca| sequerl|a| dala sels.
ChapLer2
WrlLe Lhe !CL Lo accepL Lhe followlng lnpuL and sLore lL lnLo S daLaseL ln sLep1
lnpuL
Lmployee lu sLarLs from lsL column
name sLarLs from 8
Lh
column
ueslgnaLlon sLarLs from 19
Lh
column
LocaLlon sLarLs from 30
Lh
column
MA3498 PA8lSP ALn uLvLLC8 unL
MA9836 vlnA? S?S1LM AnAL?S1 unL
MA9836 MAPLSP S?S1LM AnAL?S1 unL
MA4363 SP?AM AnAL?S1 8CC8M8 8AnCL8
MA3678 SunuA8 S?S1LM AnAL?S1 unL
lf sLep1 ls success Lhen ln sLep2 Lry Lo geL Lhe employee llsL who are worklng as sysLem
analysL" ln alphabeLlcal order lf sLep1 ls noL success Lhen lL should say CC Anu CPLCk lC8
S1L1" Lo recLlfy Lhe error
Ans
//WS?S004A !C8 CLASSAMSCCLASS1nC1ll?WS?S00481?13
//S1L1 LxLC CMlL8CLnL8
//S?Su11 uu *
LMlu nAML uLSlCn LCCA1n
MA3498 PA8lSP ALnuLv unL
MA9836 vlnA? S?S1AnAL unL
MA9836 MAPLSP S?S1AnAL unL
MA4363 SP?AM AnACM8 8AnCL8
MA3678 SunuA8 S?S1AnAL unL
//S?Su12 uu uSnWS?S004CM1SulSSP8
//S?S8ln1 uu S?SCu1*
//S?SCu1 uu S?SCu1*
//S?Sln uu *
/*
//S1L2 LxLC CMSC81CCnu(0nL)
//SC81ln uu uSnWS?S004CM1SulSSP8
//SC81Cu1 uu uSnWS?S004SC8111SulSSP8
//S?Sln uu *
SC81 llLLuS(116CPA)
lnCLuuL CCnu(228CPLCCS?S1AnAL)
//S?S8ln1 uu S?SCu1*
//S?SCu1 uu S?SCu1*
//S1L3 LxLC CMlL8CLnL8CCnu(0LCS1L1)
//S?Su11 uu *
CC Anu CPLCk lC8 S?S1AnAL
//S?Su12 uu S?SCu1*
/*
//
ChapLer3
1 1ry Lo execuLe Lhe below !CL Check Lhe ouLpuL
lf Lhe program ls avallable ln Lhe llbrary called
u1LS101uLMCLCAuLl8 how wlll you modlfy Lhe !CL?
//LSM !C8 A30 MALLS
//S1L1 LxLC CMuAvln3A
//S?S8ln1 uu S?SCu1*
//S?SCu1 uu S?SCu1*
Ans
AfLer execuLlng Lhe !CL Lhe ouLpuL obLalned ls S806 abend (could noL flnd Lhe program Lo
execuLe)
2 1he !CL codlng ls glven below
//uAvln3u !C8 CLASSA
// MSCLLvLL(11)nC1ll?uAvln31lML(1)MSCCLASSA8LClCn2M
//S1L1 LxLC CMulPuu320A8MSlnCLL
//S1LLl8 uu uSnClCS1S22ClCSSulPLCAuulSSP8
//ulPuMuS uu uSnClCS1S22ClCSClCS1ulPuMAulSSP8
// uu uSnClCS1S22ClCSClCS1ulPuM8ulSSP8
//ulP1lnux uu S?SCu1AuC8(8LkSlZL133)
//ulP8ln1 uu S?SCu1AuC8(8LkSlZL133)
//S?S8ln1 uu S?SCu1AuC8(8LkSlZL133)
//S?Sln uu *
SLLLC1 1?LAnu
18AnluuA03
uuMlu(7/0067)
/*
1ry Lo glve Lhe soluLlon for Lhe followlng
a 1hls !CL ls glvlng error code S806 whaL do you mean
by Lhls?
Ans could noL flnd Lhe program Lo execuLe(may be wrong wlLh !C8Ll8/S1LLl8 or CM)
b lf you are geLLlng S722 descrlbe whaL you undersLood how wlll you resolve Lhls error?
Ans CuLpuL exceeded Lhe llmlL
3 1ry Lo recLlfy Lhe error ln Lhe !CL
//lLP !C8 A30 MALLS
//S1 uu CMlLP8CCM
//S?S8ln1 uu *
//S?Su11 uu unl13390vCL
//S?Su12 uu unl11ALvCLSL8SMS007
//S?Sln uu uuMM?
CA1LC uSnAMLu1LS101uLMCuSvCLSL8SMS007
/*
//
Ans
//lLP !C8 A30'MALLS'
//S1 LxLC CMlLP8CCM
//S?S8ln1 uu S?SCu1*
//S?Su11 uu unl13390vCLSL8SMS003
//S?Su12 uu unl11ALvCLSL8SMS007
//S?Sln uu *
CA1LC uSnAMLu1LS101uLMCuSvCLSL8SMS007
/*
//
ln S?Su11 Lhe locaLlon of Lhe daLaseL LhaL ls Lo be caLaloged ls ldenLlfled 1he daLaseL resldes
on volume SMS007 of Lhe devlce called 1AL CA1LC ldenLlfles Lhe name of Lhe flle
u1LS101uLMCuS and Lhe devlce and Lhe serlal no LhaL lL currenLly resldes on ln S?Su11
Lhe permanenLly mounLed unlL ls ldenLlfled 1hls ls Lhe volume called SMS003
!CL 8ecap CuesLlon Answers
1 Clve lnLroducLlon abouL !CL
!CL sLands for !ob ConLrol Language lL's a speclflc funcLlonallLy language
lL acLs as an lnLerface beLween programs wrlLLen ln CC8CL/L1 Lo MvS
2 WhaL ls Lhe purpose of CLASS parameLer ln !C8 sLaLemenL?
lL's Lhe characLerlzaLlon or seLLlng or grouplng of a parLlcular [ob
CLASS [ob class
!ob class can be any characLer beLween AZ/09
lL ldenLlfles Lhe naLure of [ob Lo be submlLLed
3 WhaL are Lhe poslLlonal parameLers of a !C8 sLaLemenL?
Lmployee number/AccounL number glves how much Cu Llme ls uLlllzed for execuLlng
Lhe [ob
Lmployee name/AccounLlng lnformaLlon glves Lhe name of Lhe person who ls
execuLlng Lhe [ob
4 WhaL are Lhe keyword parameLers of !C8 sLaLemenL?
1he keyword parameLers are
CLASS
lL's Lhe characLerlzaLlon or seLLlng or grouplng of a parLlcular [ob
CLASS [ob class
!ob class can be any characLer beLween AZ/09
lL ldenLlfles Lhe naLure of [ob Lo be submlLLed
MSCCLASS
ueLermlnes Lhe ouLpuL devlce Lo whlch sysLem messages and !CL messages are wrlLLen
lL can be any characLer beLween AZ/09
A rlnLer
1 1ermlnal
MSCLLvLL
lndlcaLes whaL klnd of messages you wanL Lo wrlLe
MSCLLvLL(sLaLemenLs messages)
SLaLemenLs 0 message relaLed Lo !C8 sLaLemenL only
1 all !C8 lnpuL ouLpuL sLaLemenLs
2 lnpuL !CL sLaLemenL
Messages 0 messages dlsplayed lf [ob LermlnaLes abnormally
1messages wlll be dlsplayed for boLh normal and abnormal LermlnaLlon
uefaulL (11)
8lC8l1?
SeLs prlorlLy for a !C8
Can be 1 Lo 13
Asslgns prlorlLy Lo [obs belongs Lo same class
nC1ll?
1ells Lo whom Lhe error messages has Lo noLlfy
lL's used Lo dlrecL maxcc value Lo user
lL can be Lhe userld or S?Sulu
1?L8un
1?L8unSCAn/PCLu
SCAn scans for !CL synLax errors only
PCLu [ob ls held ln lnpuL queue unLll expllclLly released by operaLor
1lML
Speclfles maxlmum Cu Llme for a !C8
Maxlmum llmlL 1440mln
uefaulL 1
SynLax 1lme(mlnsec)
8LClCn
Speclfles amounL of space a [ob requlres Can be ln k8 or M8 lf 0k or 0M Lhe maxlmum
Avallable space ln uASu ls Laken
8LS1A81
Lnables Lhe execuLlon of [ob from a parLlcular sLep
8LS1A81sLepname
3 WhaL are Lhe poslLlonal parameLers of LxLC sLaLemenL?
1he oslLlonal parameLers are
CM(program) and 8CC(procedure)
6 WhaL are Lhe keyword parameLers of LxLC sLaLemenL?
1he keyword parameLers are
A8M
lL pass parameLers Lo Lhe program LhaL ls belng execuLed Maxlmum lengLh ls 100
CharacLers uL quoLes or parenLhesls around Lhe A8M value lf speclal characLers are
used
1lML
Speclfles maxlmum Cu Llme for a !C8
Maxlmum llmlL 1440mln
uefaulL 1
SynLax 1lme(mlnsec)
8LClCn
Speclfles amounL of space a [ob requlres Can be ln k8 or M8 lf 0k or 0M Lhe maxlmum
Avallable space ln uASu ls Laken
CCnu
lL's used Lo conLrol Lhe execuLlon of subsequenL [ob sLeps dependlng on Lhe codes
lssued by 1 or more prlor sLeps CCnu(codeoperaLor)
7 WhaL are Lhe poslLlonal parameLers of uu sLaLemenL?
1he poslLlonal parameLers are
*
lndlcaLes Lhe lnsLream daLa LhaL follows Lhe sLaLemenL
1he end of daLa ls lndlcaLed by Lhe dellmlLer /* or //
1he lnsLream canL conLaln // ln columns 12
AcLual daLa sLarLs from column 1 lLself
uA1A
ls same as '*' operand excepL Lhe lnsLream
May conLaln // ln column 12
normally followed by a keyword parameLer dlmchc lndlcaLlng Lhe new dellmlLer Lo
be used for end of daLa
uuMM?
Speclfles LhaL no devlce are Lo be allocaLed Lo Lhe flle referenced by Lhe uu name and
LhaL all l/o requesLs Lo be bypassed lncase of lnpuL flle lL seLs Lhe condlLlon for Lnu of
flle lncase of ouLpuL flle flle ls dlscarded
8 WhaL are Lhe keyword parameLers of uu sLaLemenL?
1he keyword parameLers are
ulS
MandaLory
Speclfles abouL lLs exlsLence aL Lhe sLarL of Lhe sLep and afLer Lhe LermlnaLlon of Lhe
sLep 3 parameLers sLaLus normal LermlnaLlon abnormal LermlnaLlon
S1A1uS nC8MAL 1L8MlnA1lCn A8nC8MAL 1L8MlnA1lCn
nLW CA1LC CA1LC
CLu uLLL1L uLLL1L
MCu ASS unCA1LC
SP8 unCA1LC kLL
kLL
unl1
speclfles whaL Lype of ouLpuL devlce we are uslng
unl1S?SuA
3390 for uASu
unl13480
S?SSC for Lapedrlve
SACL
Speclfles how much space Lo allocaLe for a daLaseL
SACL(S1(S2S3S4)S3S6S7)
S1S2 are requlred
S3S4S3S6S7 are opLlonal
S118kC?L8Lk
S2prlmary quanLlLy
S3secondary quanLlLy
S4dlrecLory
S38LSL
S6ConLlg
S78ound
vCL
vCLvolume serlal number
lL ldenLlfles Lhe volume serlal number of devlce on whlch a daLaseL ls wrlLLen
9 ulscuss abouL speclal uu sLaLemenLs
!C8Ll8
Wlll have programs lnslde Lhe llbrary
ConcaLenaLlon of llbrarles
used Lo ldenLlfy a program llbrary Lo locaLe Lhe programs glven ln LxLC sLaLemenL for
Lhe enLlre [ob sLeps
MusL be placed afLer Lhe !C8 sLaLemenL and before Lhe LxLC sLaLemenL
More Lhan 1 llbrary can be concaLenaLed afLer Lhe flrsL one on a !C8Ll8
lf a S1LLl8 !C8Ll8 uu sLaLemenLs boLh are speclfled ln a !C8 Lhen Lhe S1LLl8 Lakes
precedence over !C8Ll8
S1LLl8
Also have program deLalls
Should be declared afLer LxLC sLaLemenL
Can be placed anywhere ln Lhe !CL sLeps
More Lhan 1 program llbrary can be concaLenaLed afLer Lhe flrsL 1 on a S1LLl8
!CLLl8
Wlll glve procedure deLalls
used Lo execuLe procedures
Cnly 1 !CLLl8 sLaLemenL ls permlLLed ln a !C8 and lL musL appear afLer Lhe !C8
sLaLemenL and before Lhe LxLC sLaLemenL ln Lhe !C8
lf more Lhan 1 llbrary Lhen lL searches ln Lhe order ln whlch lL occurs
!C8CA1 and S1LCA1
Wlll glve lnformaLlon of caLalog
10ulscuss abouL predeflned uu sLaLemenLs
S?SCu1
Speclfles where Lo wrlLe Lhe ouLpuL messages
lor spooler fllespeclfy S?SCu1CLASS where class ldenLlfles Lhe class of spooler
ouLpuL S?SCu1* ls equlvalenL Lo MSCCLASS*
S?SCu1* checks wheLher coded Lhe MSCCLASS ln Lhe !C8 sLaLemenL so LhasL lL can
send Lhe fallure and success spool messages Lo Lhe ouLpuL Lermlnal lf lLs noL coded
sysLem wlll Lake Lhe defaulL ouLpuL devlce whlch ls Lermlnal
S?Sln
used Lo provlde lnsLream daLa lnsLanLaneously or can refer a daLaseL used malnlyby l8M
uLlllLy program
S?S8ln1
rlnLs or records program background messages/procedures lL deflnes an ouLpuL flle
11Pow Lo change Lhe defaulL procedure llbrary?
uslng !CLl8 C8uL8
12ulscuss abouL uuM uu sLaLemenLs
S?SuuuM
lL's used Lo obLaln a dump of Lhe conLenLs of varlous reglsLers and varlables ln case of
abnormal LermlnaLlon of Lhe [ob 1hls dump ls ln hexadeclmal
S?SA8Lnu
llke S?SuuuM lL ls used Lo obLaln a dump of Lhe conLenLs of varlous reglsLers and
varlables ln case of abnormal LermlnaLlon of Lhe [ob 1hls dump ls ln hexadeclmal
13WhaL are Lhe Lypes of rocedure?
CaLaloged rocedure lnsLream rocedure
14WhaL are Lhe dlfferences beLween caLaloged procedure and lnsLream procedure?
CaLaloged rocedure lnsLream rocedure
1 CanL have lnsLream daLa 1 Can have lnsLream daLa sLaLemenLs
SLaLemenLs ln a procedure ln a procedure
2 need noL sLarL wlLh 8CC Lnu 2 MusL sLarL wlLh 8CC Lnu
SLaLemenLs SLaLemenLs
3 CanL lnvoke anoLher procedure 3 lnslde a !C8 you can have 13
rocedures LhaL can be lnvoked any
no of Llmes wlLhln a !C8
4 4 Avallable Lo only 1 !C8
13LlsL down Lhe l8M uLlllLles LhaL you are aware of
lL8CCM8
lL8CLnL8
lL8CC?
lLP8CCM
lLPLlS1
lLl8814
16Pow wlll you copy Lhe conLenLs of uS member Lo S daLaseL?
uslng lL8CLnL8 uLlllLy
17Pow wlll you copy S conLenL lnLo anoLher S?
uslng lL8CLnL8 uLlllLy
18Pow wlll you copy uS conLenL lnLo anoLher uS?
uslng lL8CC? uLlllLy
19WhaL lL8CCM8 uLlllLy wlll do?
lf boLh daLaseL(can be a S/uS) ls havlng same message lL'll compare and glves
maxcc0
lf boLh daLaseL(can be a S/uS) ls noL havlng same message lL'll compare and Lhrows
an error message
20WrlLe Lhe !CL Lo deleLe a S daLaseL
//WS?S004A !C8 CLASSAMSCCLASS181?13nC1ll?WS?S004
//S1L1 LxLC CMlLl8814
//uu1 uu uSnWS?S004MALLSS
// ulS(CLuuLLL1LuLLL1L)unl13390
// SACL(18k(22))
// uC8(8LClMl8L8LCL808LkSlZL800)
//
21repare a !C8 conLalnlng 2 sLeps
a) 1he flrsL sLep ls Lo compare userldflle1ps Lo userldflle2ps
b) lf Lhe sLep1 ls successful prlnLs Lhe userldflle1ps else prlnL boLh Lhe flles
22WhaL ls speclal abouL CuC? WhaL ls Lhe namlng convenLlon of CuC? Pow many
generaLlons can be posslble ln CuC?
CuC are group of daLaseLs whlch are relaLed Lo each oLher chronologlcally and
funcLlonally namlng convenLlon userldgdgnamegdg(verslon number)
Cnly 233 generaLlons can be posslble ln CuC
23WhaL SC8A1CP/nCSC8A1CP slgnlfles ln CuC deflnlLlon?
SC8A1CP removes Lhe enLry of daLaseL from lndex as well as from volume
nCSC8A1CP removes Lhe enLry of daLaseL only from lndex buL lL wlll be presenL
somewhere ln uASu
24Pow Lo creaLe CuC daLaseL and when wlll you prefer CuC daLaseL?
1o creaLe a CuC daLaseL
//WS?S004A !C8 CLASSA MSCCLASS181?13nC1ll?WS?S004
//S1L1 LxLC CMluCAMS
//S?Sln uu *
uLllnL CuC(nAML(WS?S004SP8uCuC)
LlMl1(3)
LM1?
SC8A1CP)
/*
//S?S8ln1 uu S?SCu1*
//S?SCu1 uu S?SCu1*
//
23uescrlbe Lhe followlng [cl Abend codes
SL37 lnsufflclenL space ln a uS
S837 lnsufflclenL secondary space
Su37lnsufflcenL prlmary space
S222 1SC user cancelled Lhe [ob
S322 Cu Llme exceeded Lhe llmlL
S322 caused when a walL sLaLe exceeds an lnsLallaLlon deflned Llme llmlL
S622
S013 member noL found
S806 could noL flnd Lhe program Lo execuLe
S722 ouLpuL exceeded Lhe llmlL