Mainframe Administration Guide
Mainframe Administration Guide
ConsoleMonitoring: Wereplytooutstandingmessage. Therearetwotypesofthemessagecomesinconsole. 1) WTO:WriteToOperatorWhichwillinformstooperatortoperformsome operationaftersometime. IEF125ILoggedon IEF126ILoggedoff IEF403IJob/subsystemisstarted. IEF404IJob/subsystemiscancelled. IEE360INewSMFmandatasetisstarted IEF649IDDstatementexceedsthelimit. 2) WTOR:WriteToOperatorReplyWhichneedsimmediateattentionbyoperator. IEE362AOneSMFmandatasetisfilled IEA231ABuffershortage. Therearethreedifferenttypesofmode, RollDelete(RD)Mode:ExpectWTORmessagerestofthemessagewillbeautomatically rolledanddelete. Roll(R)Mode:Allthemessagerolledanddeletedautomatically. None(N)Mode:Ifthefirsttenmessagegenerate,wecannotseethefurtherhappening message,thenithangssystemtotally,thenBuffershortagewillhappen,toclearthebuffer shortageproblemwecanusethiscommands. KTocleartheallWTOmessage. KE,particularlineToclearWTORmessageofaparticularline. KSToshowthecurrentmode. KS,DEL=R,RD,NTochangeonemodetoanothermode. KQTocleartheWTOandWTORmessage. KE,DErasebottomdisplayareaanconsole. Displaycommandusedinconsole: /DR,LDisplayoutstandingrequest
MainframeAdministrationMaterial
SPOOLMonitoring: Itcontainsstatusandhistoryofthejob. IfthejobisgoinginloopwefindthroughTGNUM(TrackGroupNumber),ifit exceedsmorethanthree,foreg:TGNUM=4,thenjobisgoinginloop,immediatelyineed tocancelorpurgethejob.ThenuserwillgetS222abendcodeforthatjob.Ifthejobcanbe notcancelledwecancancelorpurgethejobwithhelpofASID. Assoonasspoolcrosses80%wewillgetaWTORmessageintheconsole. $hasp050ShortageofJESResource ImmediatelyIwillcheckthejobwhichisusingmorethan5%ofspoolareausing command /$Djobq,spl=(%>=5)itwilldisplaythejobwhichisusingmorethan5%of spoolarea. Iwillcancelallthedevelopmentandtestingjobwhichisusingmorespoolvolume. IfitisaproductionjobIwillinformtojobowner,inmeantime,Iwillalsoopena ticketusingservicecenterandcloselyfollowtillthejobgetsover. Still,theproductionjobcontinuouslyusethemorespoolarea,Iwillcancelthejob andinformtheuser. TheotherwayofMonitoringspool: InSDSF*wehaveanoptionH. InoptionH,wecanseealltheoutputandprintedjob. Iwillpurgethejobwhichisolderthannnumberofdays. /$Pojobq,ready,all,a=n
MainframeAdministrationMaterial
IPLPROCESS InitialprogramloadisloadingofOSfromAuxiliarystoragetocentralstorage executingit. IPLInternalProcess: IPLablediskscontainabootstrapmoduleatcylinder0track0.AtIPL,thisbootstrapis loadedintostorageatrealaddresszeroandcontrolispassedtoit. ThebootstrapthenreadstheIPLcontrolprogramIEAIPL00(alsoknownasIPLtext) andpassescontroltoit. IEAIPL00 first It clears central storage to 0 before storage areas for the master scheduler. ItlocatestheSYS1.NUCLEUSdatasetontheSYSRESvolumeandloadsaseriesof programsfromitknownasIPLResourceInitializationModules(IRIMs). IRIMSReadtheLOADPARMinformationenteredonthehardwareconsoleatthetime theIPLcommandwasexecuted. IRIMwillsfirstattempttolocateLOADxxinSYS0.IPLPARM.Ifthisisunsuccessful,it willlookforSYS1.IPLPARM. LoadMVSnucleus. ThelastoftheIRIMsthenloadsthefirstpartofthe NucleusInitializationProgram (NIP),whichinvokestheResourceInitializationModules(RIMs), Itthencommunicatewithconsole initialvirtualstorageinmasterscheduleraddressspace allotherroutines. createaddressspaceforprimaryandsecondarysubsystem.
ThreetypesofIPLstart:
MainframeAdministrationMaterial
ColdStart: LoadPLPAbutdoesnotpreserveviodatasets. QuickStart: DoesnotreloadPLPAandnotpreserveviodatasets. WarmStart: DoesnotpreservePLPA,butpreserveviodatasets. IPLStartupProcess: LogontoHMCpanel. Gotoconsoleactionandclickstart3270emulator. InHMCpanel,selectthegroup,itwilldisplaytwoicon.CPCandImage. FirstgotoCPCandclickCPCnameandselectthePORindailyactivitypanel. GototoHMCpanelandselecttheimageandclicktheimage. SelecttheparticularLPARandclickactivateindailyactivitypanel. Startthesubsystem
MainframeAdministrationMaterial
Byusing/DTS,Lor/DA,Litwilldisplaycurrentlyloggedonuser.IfitzeroIwill starttobringsubsystemdown
CCICSCC001TOSTOPCICS #STOPDB2TOSTOPDB2 PTCPIPTOSTOPTCPIP PTSOTOSTOPTSO PRMFTOSTOPRMF ZNET,QUICKTOSTOPVTAM CSYSLOGD1TOSTOPSYSLOGD1 $PITOCANCELINITIATORS FBPXOINIT,SHUTDOWN=FORKINITTOSTOPOMVS $PJES2,TERMTOSTOPJES SETSMF=01 ZEOD(storestheinternalip/opdeviceerror)
MainframeAdministrationMaterial
LPARcanbecreatedthroughHMCpanelandalsoinPR/SM. LPAR:Logicalpartitionwecanpartitiontheprocessoraccordingtoourrequirement. CPC:CentralProcessorcomplex.Itconsiststhesetupofcentralprocessorandchannel subsystemandstorageandhardware. POR:PowerOnReset.Itwillchecktheallhardwareconfigurationofmainframewhether workingproperlyornot. JES:JobEntrysubsystemAftersubmissionofjob,jeswillbetakecareofthejob. ThereareSixdifferentphases: Input:Aftersubmissionofjob,jobwillbeplacedinjesinputqueue. Conversion:Itwillconverttomachinereadablelanguagebyusinginterpreter. Execution:Dependsontheprtyofthejob,itwillexecutethejob. Output:Aftertheexecutionofjob,itwillplacejobinjesoutputqueue. Hardcopy:Aftertheexecutionofjob,itwilldirectlysenttoprinter,whichwillbe specifiedinmsgclass. Purge:Wecandeletethejobforthespoolmaintenances. Diffb/wJES2andJES3: Jes2:Jes3 DecentralizedCentralized Prty=15Prty=14 MonoplexSysplex OnlycertainoperationcanbeperformedAlloperationcanbeperformed Singlejes3cancontrolthennumberofjes2. Displaycommand: /DT displaytimeanddateofserver.
MainframeAdministrationMaterial
/DTS,L /DJ,L /DA,L /DIPLINFO /DSMF /DDCLEAR,DSN=ALL /DD,T /DR,L /Du,TAPE /Du,DASD /DXCF /DM=CPU /DM=CHP /DC,L /DPFK /CU=USERID /DOPDATA /DSSI /DM=DEV JESCommand
displaylistofactiveuseronsystem, displayvarioussubsysteminasystem. displayactiveuserandactivesubsystem. displayinformationaboutIPL displayMANdataset clearalldumps Showdumpdatasets Displayoutstandingrequest DisplaystatusofTape DisplayvariousDASDactive Displaysysplexname DisplayinformationrelatedtoCPU. Displaychannelpath DisplayConsole Displaykeyconfiguration CancelTSOsession. Itdisplaysubsystemprefixes. Itdisplayallsubsystem Itsdisplayallpathtodevices.
$DINITDisplayallinitiators $AReleaseallheldjobs $A'jobname'Releasespecificjob.Quotesrequired. $C'jobname'Canceljoboruser $DA,ALLStatusofallJES2functions $D'jobname'DisplayJESstatusofjoboruser $E'jobname'Restartjobafteritcompletes $DsplDisplayspoolultizationandspoolvolume. $DjobqDisplaythejobqueue. $DIdisplaythestatusinitiator. $HAor$H'jobname'Holdjobs $P'jobname'Purgeajob(includingspooledoutput) $TI3,C=ABAssignjobclassesforaninitiator $DNDisplayinputqueues
MainframeAdministrationMaterial
$DQDisplayqueues
SMFReportGeneration: Step1:TransfercontentsofSMFdatasetstoanotherdataset(PS)usingIFASMPDPutility. Step2:WeneedtosorttherecordaccordingtoourorganizationneedbyusingICETOOL utility. Step3:UsingLoadutilityweneedtoinsertdatafromdatasettotable. Step4:UsingFTP,wecanconvertTableintoMSExcel. SMS: NonSMSManagedvolume:Whilecreatingthedatasetifwementionthevolumewhere thedatasetshouldresides. SMSManagedvolume:Whilecreatingthedatasetifwenotmentionthevolume,itwill automaticallyallocateinavailablevolumebyusingACSRoutine. ACSRoutinewhichcontainsthe DataClass:SpecifyDatasetallocationparameter. StorageClass:AvailabilityandPerformance. ManagementClass:SpecifyDatasetBackupandMigrationcriteria. StorageGroup:AGroupofoneormoreDASDVolumesthanSMSusesfordataset allocation.
MainframeAdministrationMaterial
CONTROLDATASETS: SourceControlDataset. ActiveControlDataset CommunicationsDataset SourceControlDataset.(SCDS) TheSCDScontainsasetofSMSclassesandgroupsanttranslatedroutinesthat implementsspecificsetofstoragemanagementpolicies. ActiveControlDataset.(ACDS) TheACDSisthethesystemactivecopyofthecurrentSCDS.Whenyouactivatea configuration,SMScopiestheexistingconfigurationfromthespecifiedSCDSintoACDS. CommunicationsDataset(COMMDS) TheCOMMDSdatasetcontainsthenameoftheACDSandstoragegroupvolumes statistics.ItsenablescommunicationbetweenSMSsysteminaMultiplessystem Environment. Backup: PhysicalBackup:Ifwewanttotakebackupforentirevolume. LogicalBackup:Ifwewanttotakebackupforparticularuseridwhichmayresidein differentvolume. Restoring:CopyingadatasetfromtapetoDASD. Compress:Itisusedtocompresstheallunusedspaceindataset. Defrag:Itisusedtocompresstheallunusedspaceinonesideandusedspaceinotherside. Release:Oncescompressutilityisexecuted,itwillreleasethealltheunusedspace. Utility: ADRDSSU:Compress,Physicalbackup,Defragmentation,Logicalbackup,Restorage IEHINITT:ForTapeinitialization. ICKDSF:ForDASDinitialization. CustomizationofParmlib: 1)HandlingSpoolShortage: Permanent:
MainframeAdministrationMaterial
cpac.parmlibinjes2parm SPOOLNUM=32(weneedtoincreaseinvalue) Note:Ifthemaximumof253spoolvolumesisexceededduringacoldstart,JES2issuesa messageinformingtheoperatorthatmorespoolvolumeswerefoundthanexpectedfromthe SPOOLNUMparameterontheSPOOLDEFinitializationstatement. Temporary: Wecandobythreeways: 1) startingthenewvolume: $SSPL(DSRED1) 2) HoldingorHaltingthevolume: $ZSPL,V=(DSRED9) 3) PurgingorDrain: $PSPL(DSRED9) 2)ChangingtheTSOTimeout: Afteraperiodofinactivity,TSOwillautomaticallylogauseroff. cpac.parmlibinSMFPRM00 JWT(0030)/*After30minsitwillautomaticallylogoffthesessionifininactive. 3)ChangingtheTSOMaxuser: Maximumusercanbeusemainframesessioninsametime. Permanently: MaxuservalueshouldbechangedinallthebelowParmlibmember. Sys1.parmlibIEASYS00 Cpac.parmlibTSOKEY00 Tcpivp.tcpparmPROFILER Cpac.vtamlstA0600 Temporarily:
MainframeAdministrationMaterial
FVTAM,TSO,USERMAX=600 SMP/EProductinstallation: Omegamon:JobMonitoringTool. 1) DownloadtheomegamonPackage. 2) CreatetheHFSfileandinOMVSdirectory. 3) TransferthefileusingFTP,availableforthehost. 4) Updatethesamplejobandinstallthepackage 5) Unpaxusingutility(IKJEFT01)meansdecompressit. 6) Gimunzip(transferringwisetomainframe0 7) CreateSMP/EdatasetusingutilityIEFBR14 8) CreateCSIdatasetusingIDCAMS 9) Initializezpoolwhichispresentinsys1.maclibusingreprocommandutilityusedin Gimzpool 10)Createzonesglobal,target,distributionusingutilityGimsmp 11)DDDEFwehaveusingGimsmp 12)SMP/Ereceivecommand. 13)Creationoftarget&distributionlibrariesIEFBR14utility. 14)CheckwithapplycommandusingGimsmp. 15)ThenapplyCommand. SMP/E SMP/Eisatooldesignedtomanagetheinstallationofsoftwareproductsonyourz/OS Systemandtotrackthemodificationsyoumaketothoseproducts Therearetwotypesoflibraries: a.Targetlibraries Targetlibrariescontaintheexecutablecodeneededtorunyoursystem(forexample,the librariesfromwhichyourunyourproductionsystemoryourtestsystem). b.Distributionlibraries Distributionlibraries(DLIBs)containthemastercopyofeachelementforasystem.
MainframeAdministrationMaterial
TypesofSymonds. 1.FunctionSymonds. Theseintroduceanewproduct,anewversionorreleaseofaproduct,orupdatedfunctions foranexistingproductintothesystem. 2.PTFs Whenaproblemwithsoftwareisdiscovered.IBMsuppliescustomerwithtestedfixforthat problem.Thiswillcomeinformofprogramtemporaryfix. 3.APARSymonds Astimesyouillfinditnecessarytocorrectaseriousproblemthatoccuronyoursystem beforePTFisreadyfordistribution.ThereforeinthiscircumstanceIBMsuppliedwithyou authorizedprogramanalysisreport. 4.USERMODSYSMOD ThisSysmodcanbeusedtoreplaceorupdateanelementortointroduceatotally newwritteneventtoyoursystem.TheUSERMODiscreatedbyyoutoeithertomodify IBMcodeortoaddyourowncodetosystem. SYSMODsarecomposedoftwoparts: 1.Modificationcontrolstatements(MCS):Itcontainstheinformationabouttheproduct. 2.Modificationtext,whichistheobjectmodules,macros,andotherelementssuppliedby theSYSMOD. SYSMODpackages. 1.CBPDO2.Serverpac3.Systempac.4.EnteryServerOffering.5.SoftwareExcel. TARGETZONE: Itisusedtorecordinformationaboutstatusandstructureofoperatingsystemortarget libraries.
MainframeAdministrationMaterial
CSIDATASETS ItcontainsallinformationaboutSMP/Eneedtotrackdistributionandtargetlibraries. CSIcontainentryforeachelementinitssystemwhichdescribeselementname,type, history,howtheelementwasintroducedinsystem. Receive:Itwillplacesysmodtoglobalzone. Reject:Itwillclearfromtheglobalzoneplaceitbacktosysmod. Apply:Thecontentofproductinglobalzoneitwillplaceintargetzone. Accept:ifwearestatisfiedwithproductsothatwecangiveacceptcommandandit willplaceindistributionzone. Restore:Itwillclearthetargetzoneanditwilltaketheproductfromglobalzone placeintotargetzone. PageDataset: Pagedatasetisusedtotransferthepagefromauxiliarystoragetomain storage.Itisanvirtualstorageinothertermswecansayitisusedtoauxillarystorageand managedbyAuxiliaryStorageManager(ASM).
MainframeAdministrationMaterial
Asyourworkloadincreases,theremaybeashortageofauxiliarystorage.Whenthesystem detects70percentofspacearealreadyinuse,itissuesthefollowingmessage: IRA200EAUXILIARYSTORAGESHORTAGE ThesystemrejectsLOGON,MOUNT,andSTARTcommandsuntiltheshortageisrelieved. Ifnoactionistaken,thesystemissuesthefollowingmessagewhen90percentofall availableauxiliarystorageisinuse: IRA201ECRITICALAUXILIARYSTORAGESHORTAGE Thesolutiontothisproblemistoincreasetheauxiliarystorageby DefiningnewpagedatasetanddefineinIEASYSxx. Syntaxtocreatepagedataset: DEFINEPAGESPACE( FILE(PAGELOC) NAME(PAGE.CPAC.LOCAL3) CYLINDERS(200) VOLUME(DSRED6)) Torelateanewlycreatedpagedatasettogivethefollowingcommand PAGEADDPAGE=PAGE.CPAC.LOCAL3 Toviewthestatusofthesepagedatasetissuethefollowingcommand; /DASM
IEE200I02.28.37DISPLAYASM539 TYPEFULLSTATDEVDATASETNAME PLPA67%OK0802 PAGE.CPAC.PLPA COMMON13%OK0802 PAGE.CPAC.COMMON LOCAL25%OK0802 PAGE.CPAC.LOCAL1 LOCAL23%OK0802 PAGE.CPAC.LOCAL2 LOCAL3%OK0802 PAGE.CPAC.LOCAL3 NOSWAPDATASETSAREINUSEPROD.LOCAL3AGEADDCOMMAND531
MainframeAdministrationMaterial
LOGREC: LOGRECwillcontaininformationaboutmachinefailuressuchusprocessor failures,I/Oerrorsandprogramerrorrecordingetc. TheseinfowillbestoredinLogrecdataset,thisdatasetisspecifiedinIEASYSxx Parmlibmember,Parameteris LOGREC=SYS1.CPAC.LOGREC Toinitializealogrecdatasetweareusingutilitypgm=IFCDIP00 Ifweareworkinginmultisystemenvironmenteachsystem(LPAR0shouldhave uniqueLOGRECdataset. IfLOGRECDatasetreaches90%thenitwillthroughthefollowingmessageto console. IFB080ELOGRECDATASETNEWFULL,DSN=SYS1.LOGREC IfLOGRECiscompletelyfullthenitwilldisplaytimewithmessage. IFB081ILOGRECDATASETISFULL,hh.mm.ss,DSN=SYS1.LOGREC TocleartheLOGRECDatasetweareusingutilityprogram=IFCEREP1 RMF: ResourceMeasurementFacilityismainlyusedforperformance.Wecanconfigureandtune theproductaccordingtoourorganisationneed. RMFhasthreedatagatherers/reportersknownasmonitors: MonitorILongtermdatacollection MonitorIIOnlinesnapshotmonitoring MonitorIIIOnlineshorttermandlongtermdatagathering. ItsparameterdefinedinERBRMFxxmemberlocatedinSYS1.IBM.PARMLIB.Defaultis ERBRMF00.Defaultvaluefordatagatheringisonesecondandfordatarecording30 minutes.
MainframeAdministrationMaterial
RACF:ResourceAccessControlFacilityisz/OSsecurityserver,itismainlyusedfor securitypurpose.Andalsogivetheaccesstoprotectedresource. Majorrolesfunctionaregivetheaccesstoprotectedresource,recordingandreportingthe accessattempts. Profile:RACFstoresalltheinformationabouttheuser,groupandresourcesinprofile. User:Anindividualmembercanbeidentifiedbyhisuniqueidandpassword Group:AGroupiscollectionofRACFUserwhosharecommonaccessrequirementsto protectedresourceorwhohassimilarattributewithinthesystem. Resource:Anyinformationstoredoncomputersystemsuchasdataset,terminaland volume. Dataset:Datasetcanbeprotectedusingdiscreteorgenericdatasetprofile. Discrete:oneprofileusedtoprotectoneresources, Genericoneprofileusedtoprotectmorethanoneresource. RACFDatabase:ARACFDatabasecontaininformationaboutalltheprofileandother resourcesdefinedtoRACF. RACFMODEL:Modelisaparameterthatspecifiesthenameofthedatasetprofiletobe usedasamodelforthenewdatasetprofile. RACFCommand: Tocreateuserid: ADDUSERmani001name(Mani)OWNER(ARICH01)SUPGROUP(manigrp) Tolistuserid: Lumani001 ToDeletetheuserid: DUmani001 Alteruserid:
MainframeAdministrationMaterial
ALUmani001name(manivannan) ALUmani001owner(newowner) ALUmani001revoke ALUmani001resume ALUmani001password(thusali)resume ProfileGroup: TocreateGroup: AGmanigrpsupgroup(aricgrp)owner(arich01) ToalterGroup: ALGmanigrpowner(newowner) TolistGroup: Lgmanigrp TodeleteGroup: Dgmanigrp Profileconnect: COnnectmani001group(newgrp) Alumani001Dfltgrp(newgrp) Removemani001group(oldgrp0 ProfileDataset: ToProtectthedataset: Todefinedatasettoracfwithuniversalaccessnone ADDSDmani001.**UACC(NONE) TOpermitdatasettootherwithaccessreadorupdate PERMITmani001.**ACC(READ/UPDATE)ID(babu001) Alterdatasetprotection: ALTDSDmani001.**acc(read)id(babu001) Listdatasetprotection: LISTDSDmani001.**
MainframeAdministrationMaterial
Todeletedatasetprotection: DELDSDmani001.**notify(arich01) ProfileGeneralDatabase; TolistRacfdatabase: RVARY ToswitchRacfDatabase: RVARYSWITCH Tolistallclasses SETRLIST Tolistoneparticularclassanditsprofilenames RLISTclassname* Tolistaparticularprofilenames RLISTclassnameprofilename Todefineaclasstoracfi.echangeitfromGenerictoactiveclass Toprotecttheclassbygivinguniversalaccessnone RDEFINEclassnameprofilenameuacc(none) Topermittheclassbygivingaccessread PERMITprofilenameCL(classname)id(userid)access(read) Toactivatetheclassandnotactivatingtheclass Setrclassactclassname Setrnoclassactclassname Torefreshtheclassaftermakingchanges Setrraclist(classname)refresh Todeleteclassprotection: Rdeleteclassnameprofilename
MainframeAdministrationMaterial
Torevokeuseridsafter4attemptsofwrongpasswordandupdatingthestatistics aboutit Setrpassword(revoke(4)) Setrinitstats Torevokeuseridsafter60daysofnologon&uupdatingthestatisticsaboutit Setrpassword(interval(60)) Setrinitstats Tologonevensfterunlimitedwrongpasswordentry Setrpassword(norevoke) Catalogs: Acatalogisaz/OSdatasetthatdescribesotherdatasetattributesandrecordsthe locationofadatasetsothatthedatasetcanberetrievedwithoutrequiringtheuserto specifyitsvolumelocation Alldatasetsmanagedbythestoragemanagementsubsystem(SMS)mustbecatalogedinan ICFcatalog. TypesofCatalog: 1. IntegratedCatalogFacilitycatalogs. 2. VsamCatalogs. 3. OSCVOL(controlvolume)catalogs. Advantages. 1. ICFcatalogscanbeupdatedfasterthanVSAMcatalogsorOSCVOLS. 2. AnICFcatalogscanhavedatasetscatalogsonanynumberofvolumes. 3. Thecataloginformationthatrequiresmostfrequentupdateisphysicallylocatedin VVDSonsamevolumeasdatasetsallowingfasteraccess. 4. Maintainabilityisimprovedbysimplerbackupandrecoveryprocedures.
MainframeAdministrationMaterial
Theintegratedcatalogfacility(ICF)catalog AnICFconsistsoftwodifferentcomponents,onebasiccatalogstructure(BCS)andoneor moreVSAMvolumedatasets(VVDS). TheVVDScanbeconsideredanextensionofthevolumetableofcontents(VTOC). Basiccatalogstructure(BCS) ThebasiccatalogstructureisaVSAMkeysequenceddataset(KSDS).Itusesthedataset nameasakeytostoreandretrievedatasetinformation. .ForVSAMdatasets,theBCScontainsvolume,security,ownership,andassociation information. FornonVSAMdatasets,theBCScontainsvolume,ownership,andassociation information. FornonVSAMdatasetsthatarenotSMSmanaged,allcataloginformationiscontained withintheBCS.Forothertypesofdatasets,thereisotherinformationavailableinthe VVDS. ThreetypesofentriesinaVVDS OneVSAMvolumecontrolrecord(VVCR) ContainscontrolinformationaboutBCSswhichhave datasetsonthisvolume FirstlogicalrecordinaVVDS MultipleVSAMvolumerecords(VVR) ContaininformationabouttheVSAMdatasetson thatvolume ContaininformationaboutaVSAMdatasetresidingonthevolume NumberofVVRsvariesaccordingtothetypeofdatasetandtheoptionsspecifiedfor thedataset Alsoincludedaredatasetcharacteristics,SMSdata,extentinformation.ThereisoneVVR describingtheVVDsitself MultiplenonVSAMvolumerecords(NVR)
MainframeAdministrationMaterial
ContaininformationaboutthenonVSAMdataset onthatvolume ContainsSMSrelatedinformation VVDSisaVSAMentrysequenceddataset(ESDS) Datasetname:SYS1.VVDS.Vvolser Canbedefinedexplicitlyorimplicitly Catalogsbyfunction Byfunction,thecatalogs(BCSs)canbeclassifiedasmastercatalogandusercatalog Themastercatalog Eachsystemhasoneactivemastercatalog.Onemastercatalogcanbesharedbetween differentMVSimages.Itdoesnothavetoresideonthesystemresidencevolume(theone thatisIPLed). Themastercatalogforasystemmustcontainentriesforallusercatalogsandtheiraliases thatthesystemuses.Also,allSYS1datasetsmustbecatalogedinthemastercatalogfor propersysteminitialization. IdentifyingthemastercatalogforIPL AtIPL,youmustindicatethelocation(volseranddatasetname)ofthemastercatalog.This informationcanbespecifiedinoneoftwoplaces: SYS1.NUCLEUSmemberSYSCATxx(defaultisSYSCATLG) SYS1.PARMLIB/SYSn.IPLPARMmemberLOADxx.Thismethodisrecommended. Usingaliases Aliasesareusedtotellcatalogmanagementwhichusercatalogyourdatasetiscatalogedin. First,youplaceapointertoanusercataloginthemastercatalogthroughtheIDCAMS DEFINEUCATcommand Todefineanalias,usetheIDCAMScommandDEFINEALIAS. ListallALIASentriesinthemastercatalog: LISTCATALIASCAT(master.catalog.name) Listausercatalogconnectorinthemastercatalog: LISTCATENT(user.catalog.name)ALL
MainframeAdministrationMaterial
MainframeAdministrationMaterial
SpecifyINTOEMPTYONIMPORTCOMMANDandalsospecifiesALIASsothat aliaseseportingwithcatalogareredefined. 6.AlsoALTERUNLOCKcommand. Definingacatalog YoucanusetheIDCAMStodefineandmaintaincatalogs.Accessmethodservices (IDCAMS).Definingamastercatalogorusercatalogisbasicallythesame. //DEFCATJOB. //DEFCATEXECPGM=IDCAMS //SYSPRINTDDSYSOUT=A //SYSINDD* DEFINEUSERCATALOG (NAME(OTTO.CATALOG.TEST) MEGABYTES(1515) VOLUME(VSF6S4) ICFCATALOG FREESPACE(1010) STRNO(3)) DATA(CONTROLINTERVALSIZE(4096) BUFND(4)) INDEX(BUFNI(4)) /* DefiningaBCSwithamodel WhenyoudefineaBCSorVVDS,youcanuseanexistingBCSorVVDSasamodelforthe newone.Theattributesoftheexistingdatasetarecopiedtothenewlydefineddataset unlessyouexplicitlyspecifyadifferentvalueforanattribute.Youcanoverrideanyofa model'sattributes. PARMLIB ItisrequiredPDSthatcontainIBMsuppliedandinstallationcreatedmemberswhich containlistofsystemparametervalue. Purposeofparmlibisprovidemanyinitializationsparameterinprespecifiedformatin asingledatasetandminimizetheneedforoperatortoenterparameter.
MainframeAdministrationMaterial
IEASYMxx ConcatenatedPARMLIB
SYS1.PARMLIB SYS1.CPAC.PARMLIB SYS1.IBM.PARMLIB OthersSMP/E IEAFIXxx: ItcontainthenameofmodulesthatarefixedincentralstorageofIPL. PROGxx[CPAC.PARMLIB]: Completesthenameofoneormoreparmlibmembers(PROGxx)thatspecifytheformatand contentsoftheAPFauthorizedlibrarylist.PROGxxcanspecifyeitherastaticordynamic APFlist.AdynamicformatallowsuserstoupdatetheAPFlistatanytimeduringnormal processingoratIPL.YoucanspecifyasmanyAPFauthorizedlibrariesasyouneedina dynamicAPFlist;thereisnosystemimposedmaximumnumber.PROGxxalsocontains statementsthatcontroltheuseofinstallationexitsandinstallationexitroutines.Youcan alsousePROGxxinsteadofLNKLSTxxtodefinetheLNKLSTconcatenationandactivate itatIPL. AuthorizedProgramFacilitydatasets DynamicLNKLST
DynamicExits o Exitchaining
MainframeAdministrationMaterial
IFAPRDXX[CPAC.PARMLIB]: Parametersthatdefineaproductenablementpolicy.Productfeaturesthatsupportproduct enablement.Thepolicylisttheproductandfeaturesaswellassystemenvironmentinwhich theyabletorun. IGDSMSXX[SYS1.PARMLIB]: InitializetheStorageManagementSubsystem(SMS)andspecifythenamesoftheactive controldataset(ACDS)andthecommunicationsdataset(COMMDS). Initializationroutinetoactivatesmssubsystem(IGDSSIIN). IKJTSOXX[CPAC.PARMLIB]: ForTSO/E,specifiesauthorizedcommandsandauthorizedprograms,programsthat are authorizedwhencalledthroughtheTSOservicefacility,commandsthatmaynotbeissued in thebackground,anddefaultsforSENDandLISTBCprocessing. IEFSSNXX[CPAC.PARMLIB]: Parametersthatidentifywhatsubsystemsaretobeinitialized. Definestaticsubsystems ACF2,RACF,orothersecuritypackage JES2 DB2 CICS Subsystemrecognitioncharacters NUCLSTXX[SYS1.PARMLIB]: SpecifiesmembersofSYS1.NUCLEUStobeincludedin,orexcludedfrom,thenucleus region atIPLtime. Eg.EXCLUDEoldmod INCLUDEnewmod
MainframeAdministrationMaterial
CLOCKXX[SYS1.PARMLIB]: ParametersthatcontroloperatorpromptingtosettheTODclock,specifyingthedifference betweenthelocaltimeandGMT,andETRusage. MSTJCLXX[CPAC.PARMLIB]: Containsthemasterschedulerjobcontrollanguage(JCL)thatcontrolssysteminitialization and processing. You can place the master scheduler jcl in MSTJCLxx module in SYS1.LINLKIB //JOB //STEPEXEC=IEEMB860,DPRTY=(15,15) //STCIRDRDDSYSOUT=(A,INTRDR) //TSOINRDRDDSYSOUT=(A,INTRDR) //IEFDSIDDDSN=SYS1.PROCLIB,DISP=SHR DDDSN=CPAC.PROCLIB,DISP=SHR DDDSN=SYS1.IBM.PROCLIB,DISP=SHR //SYSUADSDDDSNSYS1.UADS,DISP=SHR IEASYSXX[SYS1.PARMLIB]: SystemparametersthatarevalidresponsestotheSPECIFYSYSTEMPARAMETERS message.Multiplesystemparameterlistsarevalid.ThelistischosenbytheoperatorSYSP parameterorthroughtheSYSPARMstatementoftheLOADxxparmlibmember. SystemAttributes CSA,SQA,PAGEdatasets Pointerstoothermembers CONSOLxx PROGxx LPALSTxx OMVS TSOKEYXX[CPAC.PARMLIB]: VTIOCparametersthatareusedbyTSO/VTAMtimesharing. StartingTSO/VTAMtimesharingactivatestheterminalcontroladdressspace(TCAS).
MainframeAdministrationMaterial
ThefunctionofTCASistoaccepttheTSO/VTAMlogonrequestanttocreateanaddress spaceforeachTSOuser.TCASbuildTCAStableandinsertaparametervalueinit.The VTAMterminalI/Ocoordinator(VTIOC)INTERFACEbetweenTSOandVTAM. EG. USERMAX=600 DEFAULT=60 MAX NO OF ADDRESS SPACE IN SYSTEM DEFAULTIS40. COFVLFXX[SYS1.IBM.PARMLIB]: AllowsanauthorizedprogramtostorenamedobjectsinvirtualstoragemanagedbyVLF andtoretrievetheseobjectbynameonbehalfofusersinmultipleaddressspaces.VLFis designed primarily to improve performance by retrieving frequently used objects from virtualstorageratherperformingrepetitiveI/ooperationsfromDASD. TOSTARTVLF STARTVLF,SUB=MSTR,NN=XX COFDLFXX[SYS1.IBM.PARMLIB]: AllowsaprogramtostoreDLFobjectsthatcanbesharedbymanyjobsinvirtualstorage managedbyHiperbatch. TOSTARTDLF STARTDLF,SUB=MSTR,NN=XX [SYS1.IBM.PARMLIB]: AllowsaninstallationtolisttheentrypointnameorLNKLSTlibrariesthatcanberefreshed bytheMODIFYLLA,UPDATE=xxcommand. TOSTARTLLA LLA=XXcommandidentifiestheCSVLLAxxPARMLIBmembertobeusedtobuildLLA directory. This command is issued by the IBMsupplied IEACMD00 parmlib member duringsysteminitialization. SMFPRMxx[SYS1.IBM.PARMLIB]: ParametersthatdefineSMFoptions. Systemmeasurement Tuning Capacityplanning Problemdiagnosis Exits TimeoutforMVStasks
MainframeAdministrationMaterial
LPALSTxx[SYS.LPALIB]: ListofdatasetstobeconcatenatedtoSYS1.LPALIBfromwhichthesystembuildsthe pageableLPA(PLPA). CONSOLxx[SYS1.PARMLIB]: Parameterstodefineaninstallationsconsoleconfiguration,initializationvaluesfor communicationstasks,thedefaultroutingcodesforallWTO/WTORmessagesthathave none assigned, and the characteristics of the hardcopy message set. CONSOLxx also containsparametersthatdefinethehardcopymediumanddesignatethealternateconsole groupforhardcopyrecovery. LNKLSTxx[SYS1.LINKLIB]: ListofdatasetstobeconcatenatedtoformtheLNKLSTconcatenation. PFKTABxx[SYS1.PARMLIB]: Parameterscontainthedefinitionsforprogramfunctionkeytables(PFKtables). COMMANDxx[CPAC.PARMLIB]: Commandstobeissuedbythecontrolprogramimmediatelyafterinitialization.JES commandsmaynotbeincluded. Eg. COM=SETMPF=00 COM=SVLF,SUB=MSTR COM=SDLF,SUB=MSTR COM=SVTAM COM=SSYSLOGD BPXPRMxx[CPAC.PARMLIB]: UNIXSystemServicesNomemberstartsOMVSinminimalmode Mostparameterscanbechangeddynamically OthersrequireIPLMountHFSdatasetsatstartupSpecifyinitializationscrip DB2:
MainframeAdministrationMaterial
Itiscollectionofdata.Itismainlyusedtomanagelargevolumeofdata. DB2hasfiveaddressspace: 1) DSNMSTR(SystemServices):Supportsystemoperationcommunication& shutdown. 2) DSNDBM01(DatabaseServices):Supportdefinition,updationandretrievedofDB2 data. 3) IRLMPROC(LockingServices):Internalresourcelockmanagerusedforlocking duringretrivalofconcurrentdata. 4) DSNDIST(DistributedDBservice)Takecareofremoteaccessdatabaselocatedat differentplace. 5) DSNSPAS:Itprovidesanisolatedenvironmentinwhichtoexecutestored procedure. DB2catalog ItcontaininformationaboutalloftheDB2objects(table,indexes,views,tablespace, databaseandstorage). DB2Directory: Adirectoryconsistsofsetofdb2tablestoredin5tablespacenamely 1)SkeltonPackageTablespace2)SkeltonPackageTablespace3)Systemlogrange Tablespace4)Systemutilities5)DatabaseDescriptor. PCTFREE:Percentageofeachpagetobeleftfree FREEPAGE:Numberofpagestobeloadedwithdatabetweeneachfreepage BSDS: Itcontainstheallactiveandarchievelogdatasets.Duringinstallationofdb2,two BSDScreatedandkeptindifferentvolume. ActiveLogDataset: Itrecordsallthehappeningindb2.
MainframeAdministrationMaterial
ArchieveLogdataset: Copiesthecontentofactivelogtodasd. Bufferpool: Itisanvirtualstoragearea.Ifthedataispresentinbufferpoolwecanretrieveit fastly. Types: BP0,BP1,BP2,BP32 StorageGroup: Itisasetofvolumesondasdthesevolumesholddataset. Database: Asetofdb2objecti.e.table,index,tablespaceandview. ThreetypesofTablespace: SimpleTablespace: Apagecontaininfoaboutmorethanonetable. SegmentedTablespace: Cancontainoneormoretables.Tablespaceisdividedintosegmentsof4to64 pages in incrementsof4 pages.Each segment isdedicated tosingle table. A tablecan occupymultiplesegments PartitionedTablespace: CancontainonetableTablespaceisdividedintopartsandeachpartisputinaseparate VSAMdataset. ReferentialIntegrity: Mechanismthatensuresthatdataintegritybetweentablesrelatedbyprimarykeyand foreignkey. Primarykey: Itshouldbeanuniquekey,usingthiswecanretrieverecordsofatable.
MainframeAdministrationMaterial
Foreignkey: Aprimarykeyofparenttableshouldbenormalkeyofchildtable. COMMIT: Signaltodb2subsystemthatthetransactionhascompletedsuccessfullyand anychangestothedatabasecanbecompleted. SPUFI: Thissupportonlineexecutionofsqlstatementfromatsoterminal. Modeoflock: S(SHARE):Thelockownerandanyconcurrentprocessescanreadbutcannotchangethe lockedpage. U(UPDATE):Thelockownercanreadbutnotchangethelockedpage X(EXCLUSIVE):Thelockownercanreadorchangethelockedpage. Isolationlevels: CSreleasesthelockonpageafteruse RRretainsalllockacquiredtillendoftransactions MigrateDB2fromonereleasetootherversion. DUMPCATutility. Thread: Itisaconnectionbetweenonesubsystemtoanothersubsystem. DynamicSQL: Duringexecutionofsqlstatementwecanchangethevalue. StaticSQL: Duringexecutionofsqlstatementwecannotchangethevalue. Plan
MainframeAdministrationMaterial
Itisdb2object(producedduringthebindprocess)thatassociatesoneormore databaserequestmoduleswithaplanname. DB2bind ItisaprocessthatbuildaaccesspathtoDB2tables PACKAGES: TheycontainexecutablecodeforSQLstatementsforoneDBRM Cursor ACursorisanamedstructureusedtomakeasetofrowsavailabletoaprogram. Selectstatement ASELECTstatementisanSQLstatementthatretrievesdatafromaTABLEor VIEW. EXPLAIN: EXPLAINisusedtodisplaytheaccesspathasdeterminedbytheoptimizerfora SQLstatement COPYPENDING Astateinwhich,animagecopyonatableneedstobetaken,Inthisstatus,thetable is available only for queries. You cannot update this table. To remove the COPY PENDINGstatus,youtakeanimagecopyoruseREPAIRutility. CHECKPENDING: WhenatableisLOADedwithENFORCENOoption,thenthetableisleftin CHECKPENDINGstatus.ItmeansthattheLOADutilitydidnotperformconstraint checking DB2onlineutility: Load:Itloadthesetofdatatothetable. Copy:itisusedtotakebackupofthetablespace. Mergecopy:Itmergesthefullcopyandincrementalcopy. Reorg:
MainframeAdministrationMaterial
CICS: CICS: Customerinformationcontrolsystem.Itisusedtoconvertbatchprogramtoonline processing. Map: RepresentationofonescreenformatiscalledMap(Screenpanel) TypesofMap: PhysicalMap:Mapisusedforcreationofcicsregion. SymbolicMap:Mapisusedbycicsapplicationprogram TransientDataQueueTemporaryStorageQueue 1)Datacanbereadsequentially1)Datacanbereadrandomly 2)Whilefetchingthedataitwill2)Whilefetchingthedataitwill affectthealldata.affecttheonlytheparticulardata. CICSresourceentriescreation: Itcanbecreatebytwoways: 1) CEDAOnlineProgram 2) DFHCSDUPutilityBatchProgram Weneedtocreate:
MainframeAdministrationMaterial
1)Programid(8character) 2)Transactionid(4character) 3)Mapid(7character) 4)Fileid(8character) 5)DB2entry(8character) 6)Queueid(4character). ForcingLoopingTask: InCEMTItaskoptionpanel,wehaveoptionHtype,wecanidentifyifthejobisgoingin loopornot. ICWAITorZCIOWAITjobisexecutedwaitingforuserinputandoutput. TSAUXJobisgoinginloop,wecanforclydeletethejobwithoptionF. VSAM:VirtualstorageAccessMethod. VSAMactsasinterfacebetweenOperatingSystemandApplicationProgram. ItactsasdatabaseforapplicationProgram.
EntrySequenceDataSets(ESDS)
MainframeAdministrationMaterial
adatacomponent,whichrepresentstheactualrecordsofafile anindexcomponentwhichrepresentstheindexesforKSDS
ControlInterval
ThefundamentalbuildingblockofeverycomponentofaVSAMdatasetistheControl Interval(CI).ItistheunitofdataVSAMtransfersbetweenvirtualanddiskstorage.Thesize ofaCImustbebetween512and32,768bytes CIcontainsRecords,Freespace,ControlIntervalDefinitionField(CIDF),RecordDefinition field(RDF) RDFandCIDF RDF 3byteslong Indicateslengthofrecords CIDF 4byteslong OneperCI IndicatesFreespace
ControlArea(CA)
SyntaxofJOBStatement:
MainframeAdministrationMaterial
There aretwotypesofparameters:
Positionalparameters Keywordparameters Positionalparameters: Positionalparametersareparametersthatarecharacterizedbytheirlocation. ThetwopositionalparametersforaJOBstatementare: Jobaccountinginformation: UsedtobillonanyJobthatrunonmainframe IdentifiesaccountnowhichwillbebilledforCPUtime Programmername: Identifiestheauthorsname KeywordParameters: Consistingofakeywordandequalsignandvariableinformation.
MainframeAdministrationMaterial
CLASSSomejobscanbeshortrunning,somejobsmaytakemoretimeother may use having resources. CLASS keyword parameter is used to tell to OS aboutthenatureofjobwearesubmitting. Syntax>CLASS=jobclass PRTYItisrelatedtoCLASSparameter.Itassignsprioritytojobswhichbelongtothe sameclass.Highernumbertakesprecedenceoverthejobwithlowernumber.Ajobwith priorityof12willrunbeforeajobwithpriority5. Syntax>PRTY=priority MSGCLASS The MSGCLASS parameterdetermines the output device to which system messages and JCL messages are written. (or) MSGCLASS specifies the job schedulermessageoutputclass. Syntax>MSGCLASS=outputclassname MSGLEVEL isusedtotellJCL,whichmessagestobeprintedinthedevicespecified inMSGCLASSparameter. Syntax>MSGLEVEL=(statements,messages) STATEMENT 0Relatedtojobstatementsonlyprinted 1jclwillbeprinted (whichincludesallcataloged/symbolicparameters) 2onlytheinputjclstatementsbeingprinted MESSAGES 0Allocation/terminationmessageswillbeprinted Ifjobterminatesabnormally 1Allocation/terminationmessageswillbeprinted regardlessofwhetherthejobterminatesnormallyor abnormally. TYPRUNTheTYPRUNparameterisusedtospecifywhetherjobistobehelduntil furthernoticeorforsyntaxchecking. Syntax>TYPRUN=HOLDJobhelduntilfurthernotice TYPRUN=SCANCheckJclforsyntaxchecking
MainframeAdministrationMaterial
CHAPTER2:Abendcode: S013:Membernotfound S222Abend:Thejobwascancelledbecauseitviolatedsomerestriction.Nodumpwasrequested. S322Abend:ThejobusedmoreCPUtimethanitshouldhave.Eithertheestimateiswrongortheprogramisinan uncontrollableloop. S413Abend:Avolumewasneededthatcouldnotbemounted. S422Abend:Toomanyjobsteps. S522Abend:Jobwaswaitingtoolong. S722Abend:Toomanylinesofprint. SB37Abend:Insufficientsecondaryspace. SD37Abend:Insufficientprimaryspace. SE37Abend:Insufficientdiskspace.themaximumnumberofextentswouldbeexceeded.Forinstance,when exceeding16extentsofaPDS.AnE37ontapedatasetsismostoftencausedwhenthenumberofrequestedvolumesis exceeded.Thedefaultis5,thereforearequestforthesixthvolumewillfailwithaE37.