VASM面试题Word文件下载.docx

上传人:b****6 文档编号:19270555 上传时间:2023-01-04 格式:DOCX 页数:11 大小:19.77KB
下载 相关 举报
VASM面试题Word文件下载.docx_第1页
第1页 / 共11页
VASM面试题Word文件下载.docx_第2页
第2页 / 共11页
VASM面试题Word文件下载.docx_第3页
第3页 / 共11页
VASM面试题Word文件下载.docx_第4页
第4页 / 共11页
VASM面试题Word文件下载.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

VASM面试题Word文件下载.docx

《VASM面试题Word文件下载.docx》由会员分享,可在线阅读,更多相关《VASM面试题Word文件下载.docx(11页珍藏版)》请在冰豆网上搜索。

VASM面试题Word文件下载.docx

Q4)Whatarethedistinctivefeaturesofaksds,keysequenceddataset?

A4)Theindexandthedistributedfreespace.

Q5)WhatisaCA,controlarea?

A5)Agroupofcontrolintervalsmakesupacontrolarea.

Q6)Whatisasequenceset?

A6)ThisisthepartoftheindexthatpointstotheCAandCIoftherecordbeingaccessed.

Q7)Whatistheindexset?

A7)Thisistheotherpartoftheindex.Ithasmultiplelevelswithpointersthatultimatelyreachtothesequenceset.

Q8)Whatisacluster?

A8)Aclusteristhecombinationoftheindex,sequencesetanddataportionsofthedataset.Theoperatingsystemgivesprogramaccesstothecluster,ie.toallpartsofthedatasetsimultaneously.

Q9)Whatisthecatalog?

Q9)Thecatalogcontainsthenamesofalldatasets,VSAMandnon-VSAM.Itisusedtoaccessthesedatasets.

Q10)Whatisanalternateindex?

Q10)AnAIXisafilethatallowsaccesstoaVSAMdatasetbyakeyotherthantheprimaryone.

Q11)Whatisapath?

Q11)Apathisafilethatallowsyoutoaccessafilebyalternateindex–thepathprovidesanassociationbetweentheAIXandthebasecluster.

Q12)Whatistheupgradeset?

Q12)TheupgradesetisthelistofallAIXesthatVSAMmustmaintainforaspecificbasecluster,sothatwhendatainthebaseclusterisupdated,theAIXfilesarealsoupdated.

Q13)Whatisfreespace?

Q13)FreespaceisreservedwithinthedatacomponentofaKSDStoaccommodateinsertingnewrecords.

Q14)WhatisaVSAMsplit?

Q14)Ifthereisn’tenoughspaceinthecontrolintervalVSAMperformsacontrolintervalsplitbymovingsomerecordstothefreecontrolintervals.Ifthereisn’tafreecontrolintervalVSAMperformsacontrolareasplitbyallocatinganewcontrolareaandmovinghalfofthecontrolintervalstoit.

Q15)Whatisthebasecluster?

Q15)ThebaseclusterconsistsofthedatacomponentandtheindexcomponentfortheprimaryindexofaKSDS.

Q16)Doprimarykeyvalueshavetobeunique?

Doalternatekeyvalueshavetobeunique?

Q16)Primarykeyvaluesmustbeunique;

alternatekeyvaluesneednotbe.

Q17)IntheCOBOLSELECTstatementwhatistheORGANIZATIONforaKSDS?

Q17)TheORGANIZATIONisINDEXED.

Q18)IntheCOBOLSELECTstatementforaKSDSwhatarethethreepossibilitiesforACCESS?

Q18)ACCESScanbeSEQUENTIAL,RANDOMorDYNAMIC.

Q19)WhatistheCOBOLRECORDKEYclause?

Q19)TheRECORDKEYintheSELECTclauseidentifiesthefilesprimarykeyasitwillbeknowntotheprogram.

Q20)WhatisthepurposeoftheFILESTATUSclauseintheSELECTstatement?

Q20)TheFILESTATUSfieldidentifiesthefieldthatVSAMusestoprovideinformationabouteachI/Ooperationforthefile.

Q21)IfyouwishtousetheREWRITEcommandhawmusttheVSAMfilebeopened?

Q21)ItmustbeopenedasI/O.

Q22)ExplainthemeaningandsyntaxfortheSTARTcommand.

Q22)TheSTARTcommandisusedreadotherthanthenextVSAMrecord.AvaluemustbemovedintotheRECORDKEY.TheKEYclauseisoptional,butitcanbeusedtospecifyarelational(equal,lessthan,etc.)operator.

Q23)Whatisthemeaningofdynamicprocessing?

Q23)It’srarelyused.ItmeansoneprogramusesbothsequentialandrandomprocessingforaVSAMKSDSfile.

Q24)NamesomecommonVSAMerrorconditionsandcodes.

Q24)Theyareendoffile(10),duplicatekey(22),recordnotfound(23),VSAMlogicerror(90),openproblem(92)andspaceproblem(93).

Q25)WhatistheVSAM-codefield?

Q25)ItisaCOBOLIIenhancementtoVSAMbatchprocessingexpandingtheFILESTATUSfield.ItisdefinedinWORKING-STORAGEasasixbytegroupitemwiththreetwobyteelements,thenormalreturncode,thefunctioncodeandthefeedbackcode.

Q26)WhatisaVSAMslot?

Q26)Arelativerecorddataset(RRDS)consistsofaspecifiednumberofareascalledslots.Eachslotisidentifiedbyarelativerecordnumber(RRN)whichindicatesitsrelativepositioninthefile.

Q27)WhatistheutilityprogramcloselyassociatedwithVSAM?

Q27)IDCAMS,theaccessmethodservicesutility.

Q28)ThereareatleastsevenIDCAMScommands;

nameandexplaineachofthem?

.

Q28)ALTERmodifiesinformationforacatalog,alternateindex,clusterorpath.BLDINDEXbuildsthealternateindex,ofcourse.DEFINEisusedforALTERNATEINDEX,CLUSTERorPATH.DELETEremovesthecatalogentryforacatalog,cluster,alternateindexorpath.LISTCATlistsinformationaboutthedataset.PRINTprintsthedatasetcontents.REPROcopiesrecordsfromonefiletoanother.

Q29)WhatarethethreelevelsofdefinitionfortheVSAMDEFINE?

Q29)TheyareDEFINECLUSTER,DATAandINDEX.(文章来源:

Q30)WhatisthesignificanceoftheSHAREOPTIONSparameter?

Q30)ItspecifieshowthefilemaybesharedbetweenjobsandbetweenbatchandCICSenvironments.

Q31)WhatisthemeaningoftheDEFINEMODELparameter?

Q31)ItspecifieswhetherDanielaPestovaorYamila–oops!

Wrongmodels!

TheMODELparameterallowsyoutomodelyourclusterbymodelingitafteranexistingcluster.

Q32)WhatisFileStatusinVSAM?

Q32)TheFILESTATUSclauseoftheFILE-CONTROLparagraphallowsforeachfiletobeassociatedwithafilestatuskey(i.e.,the2-characterdataitemspecifiedintheFILESTATUSclause).IftheFILESTATUSclauseisspecifiedforagivenfile,avalueindicatingthestatusofeachI/Ooperationagainstthatfileisplacedintheassociatedfilestatuskey.ThisvalueisstoredinthefilestatuskeyassoonastheI/Ooperationiscompleted(andbeforeexecutionofanyEXCEPTION/ERRORdeclarativeorINVALIDKEY/ATENDphraseassociatedwiththeI/Orequest).

Note:

ThiselementmaybehavedifferentlywhentheCMPR2compileroptionisused.Thefilestatuskeyisdivided

intotwostatuskeys:

thefirstcharacterisknownasfilestatuskey1;

thesecondcharacterisfilestatuskey2.

Q33)What’saLDS(LinearDataSet)andwhat’situsedfor?

Q33)LDSisaVSAMdatasetinnameonly.Ithasunstructured4k(4096bytes)fixedsizeCI’swhichdonotcontaincontrolfieldsandthereforefromVSAM’sstandpointtheydonotcontainanylogicalrecords.Thereisnofreespace,andnoaccessfromCobol.CanbeaccessedbyDB2andIMSfastpathdatasets.LDSisessentiallyatableofdatamaintainedondisk.The‘tableentries’mustbecreatedviaauserprogramandcanonlybelogicallyaccessedviaauserprogram.Whenpassed,theentireLDSmustbemappedintostorage,andthendataisaccessedviabaseanddisplacementtypeprocessing.

Q34)WhatisIDCAMS?

Q34)IDCAMSistheAccessMethodServicesprogram.YouruntheIDCAMSprogramandsupplyAMScommandsthruSYSIN.(examplesofAMScommandsareDELETE,DEFINE,REPROetc..).

Q35)CanAMScommandsberunfromtheTSOprompt?

Q35)Yes

Q36)SyntaxofAMSmodalcommands?

Q36)Note:

thesecanbeusedonlyunderIDCAMSandnotfromtheTSOprompt.

IFLASTCC(orMAXCC)>

(or<

=etc..)value-

THEN-

DO-

commandset(suchasDELETE,DEFINEetc..)

ELSE-

commandset

LASTCC–Conditioncodefromthelastfunction(suchasdelete)executed

MAXCC–Maxconditioncodethatwasreturnedbyanyoftheprevfunctions

SETisalsoavalidAMScommand.SETLASTCC(orMAXCC)=value

Themaximumconditioncodeis16.Acondcodeof4indicatesawarning.Acondcodeof8isusuallyencounteredonaDELETEofadatasetthatisnotpresent.

Q37)UnderIDCAMS,multiplefunctionscanbeexecuted,eachofwhichreturnsacondcode.Whatwillbetheconditioncodereturnedtotheoperatingsystem?

Q37)ThemaximumconditioncodegeneratedisreturnedastheconditioncodeoftheIDCAMSstep.

Q38)WhatisControlInterval,ControlArea?

Q38)ControlIntervalisanalogoustoaphysicalblockforQSAMfiles.ItistheunitofI/O.Mustbebetween512bytesto32k.Usuallyeither2Kor4K.Alargercontrolintervalincreasesperformanceforsequentialprocessingwhilethereverseistrueforrandomaccess.UnderCICSwhenarecordislocked,theentireCIgetslocked.

ControlAreaisagroupofcontrolintervals.CAisusedduringallocation.CAsizeiscalculatedbasedonthe

allocationtype(cyl,tracksorrecords)andcanbemaxof1cylinder

Q39)WhatisFREESPACE?

Q39)CodedintheDEFINEasFREESPACE(cica)whereciisthepercentageofeachcontrolintervaltobeleftfreeforinsertions,caisthepercentageofcontrolintervalsineachcontrolareatobeleftempty.

Q40)HowdoyoudecideonoptimumvaluesforCI,FREESPACEetc…?

Q40)CIsizeshouldbebasedonrecordlength,typeofprocessing.UsuallyCIis4K.Ifrecordlengthislarger(>

1K),chose6Kor8K.FREESPACEshouldbelargeifmorenumberofinsertionsareenvisaged.Usualvaluesare(2020)whenheavyupdatesareexpected.CIsizecanbecalculated.

Q41)WouldyouspecifyFREESPACEforanESDS?

Q41)No.BecauseyoucannotinsertrecordsinanESDS,alsowhenyourewritearecord,itmustbeofthesamelength.Thusputtinganyvalueforfreespacedoesnotmakeanysense.

Q42)WhatisSHAREOPTS?

Q42)SHAREOPTSisaparameterintheDEFINEandspecifieshowanobjectcanbesharedamongusers.ItiscodedasSHAREOPTS(ab),whereaisthecrossregionshareoptioniehowtwoormorejobsonasinglesystemcansharethefile,whilebisthecrosssy

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 表格类模板

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1