JCL 面试题.docx
- 文档编号:17970882
- 上传时间:2023-08-05
- 格式:DOCX
- 页数:17
- 大小:25.62KB
JCL 面试题.docx
《JCL 面试题.docx》由会员分享,可在线阅读,更多相关《JCL 面试题.docx(17页珍藏版)》请在冰点文库上搜索。
JCL面试题
JCL面试题
Q1)WhatisaGenerationDataGroup(GDG)?
Q2)HowisaGDGbasecreated?
Q3)Whatismodeldatasetlabel(ModelDSCB)?
Q4)HowareGDGsconcatenated?
Q5)HowisanewGDGcoded?
Q6)WhenshouldDISP=MODisused?
Q7)Howisadatasetpassedfromonesteptoanother?
Q8)Howaredatasetsconcatenated?
Q9)WhatisthedifferencebetweentheJOBLIBandtheSTEPLIBstatements?
Q10)NamesomeoftheJCLstatementsthatarenotallowedinprocs.?
Q11)Whatisprimaryallocationforadataset?
Q12)Whatisthedifferencebetweenprimaryandsecondaryallocationsforadataset?
Q13)Howmanyextentsarepossibleforasequentialfile?
ForaVSAMfile?
Q14)Whatdoesadispositionof(NEW,CATLG,DELETE)mean?
–GS
1.WhatisthefunctionoftheTYPRUNparameter?
TYPRUN参量的作用是什么?
用于请求特殊处理的作业处理。
typrun:
scan检查完语法就回家;hold检查完语法然后休息;jclhold不检查语法就休息;copy把JCL印到输出中
2.Whatisthefunctionofthefollowingparameters:
I)MSGLEVEL=(0,0)
ii)MSGLEVEL=(2,1)
iii)MSGLEVEL=(1,1)
以下参量的作用是什么:
I)MSGLEVEL=(0,0)Relatedtojobstatementswhichareonlyprinted仅打印出作业的JOB语句;只有在作业异常终止时,打印出有关JCL、JES、操作员及SMS的处理信息
ii)MSGLEVEL=(2,1)OnlytheinputJCLstatementsareprinted打印输入流中的所有控制语句;无论作业是否异常终止,都打印出有关JCL、JES、操作员及SMS的处理信息
iii)MSGLEVEL=(1,1)JCLisprinted打印出作业中包括过程语句在内的所有JCL语句;无论作业是否异常终止
3.WhatisthepurposeoftheMSGLEVELparameter?
定义MSGLEVEL参量的目的是什么?
用于控制JCL作业输出清单的内容。
MSGLEVEL(A,B):
一般用(1,1)就可以了。
A-0,1,2(0--仅打印JCL;1--打印全部;2--JCL和JES2)
B-0,1(0--作业异常终止才打印;1--无论如何都打印)
4.JCL中最多可以有多少条流内语句?
15
5.磁带文件的最大块大小是多少?
32760,按块上记录的有效数字大小计算。
6.在一个作业中DD语句最多可以有几句3273
7.一个作业最多可以有几个作业步255
A1)GenerationDataGroupisagroupofchronologicallyorfunctionallyrelateddatasets.GDGsareprocessedperiodically,oftenbyaddinganewgeneration,retainingpreviousgenerations,andsometimesdiscardingtheoldestgeneration.
什么是GDG?
GDG是一组按世代或功能划分的数据集。
GDG按世代处理,加一个新的一代数据要受上一代的限制,有时会丢换最老的一代。
A2)AGDGbaseiscreatedinthesystemcatalogandkeepstrackofthegenerationnumbersusedfordatasetsinthegroup.IDCAMSutilityisusedtodefinetheGDGbase.
GDGBASE怎么样创建?
GDGBASE在系统编目时被创建并且在GDG中保留用于DATASET中的世代个数的空间。
使用IDCAMS定义GDGBASE。
A4)GenerationDataGroupsareconcatenatedbyspecifyingeachdatasetnameandthegenerationnumberforallgenerationsofthegenerationdatagroup.Otherwisetohaveallgenerationsofagenerationdatagroup,omitthegenerationnumber.TheDDstatementwillrefertoallgenerations.Theresultisthesameasifallindividualdatasetswereconcatenated.Ifgenerationsarenotonthesamevolume,thiswillnotwork.
GDG怎么样级联?
GDG级联既可以指定每一个DATASET名,也可以指定GDG里的世代个数。
另外,级联GDG里的所有世代可以省略世代个数。
DD语句将涉及到所有的世代。
结果和一个一个的级联一样。
如果世代不在同一个卷上该命令将不起作用。
A5)AnewGDGiscodedas(+1)afterthedatasetnameasfollows:
DSN=JAN.DATA(+1).Thiswillcauseallgenerationstobepusheddownonelevelattheendofthejob.
怎么编写GDG?
一个新的子代GDG在DATASET名后加个(+1),例如:
DSN=JAN.DATA(+1)将使所有的世代数据都向上升一代(个人理解)。
并将该代数据放在最后一代。
A6)DISP=MODisusedtoeitherextendanexistingsequentialdatasetortocreateadatasetifitdoesnotexist.Ifthedatasetexists,thenrecordsareappendedtothedatasetattheendoftheexistingdataset.Ifthedatasetdoesnotexist,thesystemtreatsMODasifitwereNEW,providedthatthevolumeparameterhasnotbeenused.Ifthevolumeparameterisused,thesystemterminatesthejobanddoesnotcreatethenewdataset.MODcanbeusedtoaddtoadatasetthatextendsontoseveralvolumes.AlwaysspecifyadispositionofCATLGwithMODforcatalogeddatasets,eveniftheyarealreadycataloged,sothatanyadditionalvolumeserialnumberswillberecordedinthecatalog.
什么时候使用DISP=MOD?
DISP=MOD既可以扩展一个顺序DATASET,也可以创建一个没有存在的DATASET,对于一个存在的DATASET,记录被追加到末尾。
如果没存在,系统将把MOD当成NEW看,提供一个没有使用的空间参数。
如果空间参数使用过了,系统则终止JOB并且不创建DATASET,MOD可以被用来扩展一个DATASET的空间。
经常用MOD为一个编目的DATASET指定CATLG的属性,既使它已经编目了,因此在编目中可以增加任何连续的空间来写记录。
A7)AdatasetispassedfromonesteptoanotherbasedonwhatiscodedontheDISPparameter.ThedatasetcanonlybepassedtosubsequentstepsifPASSwasusedonthedispositionparameter.
DATASET怎么从一个STEP传递到另一个STEP?
传递由DISP参数决定,使用DATASET只能被传递到下一个STEP。
A8)DatasetsareconcatenatedbywritinganormalDDstatementforthefirstdatasetandthenaddingaDDstatementwithoutaDDNAMEforeachdatasettobeconcatenatedintheordertheyaretoberead.Thefollowingisanexampleofthreedatasetsconcatenated:
//YEARDATDDDSN=JAN.DATA,DISP=SHR
//DDDSN=FEB.DATA,DISP=SHR
//DDDSN=MAR.DATA,DISP=SHR
DATASET怎么级联的?
DATASET级联是通过先写一个一般的DD语句,然后加上一个没有DDNAME的DD语句,看读取顺序被级联。
如上例所示。
A9)TheJOBLIBstatementisplacedaftertheJOBstatementandiseffectiveforalljobsteps.Itcannotbeplacedinacatalogedprocedure.TheSTEPLIBstatementisplacedaftertheEXECstatementandiseffectiveforthatjobsteponly.UnliketheJOBLIBstatement,theSTEPLIBcanbeplacedinacatalogedprocedure.
JOBLIB语句和STEPLIB语句有什么区别?
JOBLIB语句是在JOB语句之后,对于所有的steps都有效,并且不能放在编目过程中,JOBLIB语句是在EXEC语句之后,只对当前的step有效,不同于JOBLIB,它可以放在编目过程中。
A10)SomeoftheJCLstatementswhicharenotallowedinproceduresare:
1.JOB,Delimiter(/*),orNullstatements
2.JOBLIBorJOBCATDDstatements
3.DD*orDATAstatements
4.AnyJES2orJES3controlstatements
在procs那些JCL语句不能命名
在过程中不允许的JCL语句:
1.JOB,分隔符(/*),或空语句
2.JOBLIB或JOBCATDD语句
3.DD*或DATA语句
4.任何JES2或JES3控制语句
A11)Thespaceallocatedwhenthedatasetisfirstcreated.
一个数据集的初次分配是什么?
数据集建立时的空间。
A12)Secondaryallocationisdonewhenmorespaceisrequiredthanwhathasalreadybeenallocated.
一个数据集的主分配和从分配有什么区别?
从分配是当要求更多空间时所分配的。
A13)16extentsonavolumeforasequentialfileand123foraVSAMfile.
一个顺序文件有多少extents,VSAM?
顺序文件为在一个卷上为16extents,VSAM文件为123。
A14)Thatthisisanewdatasetandneedstobeallocated,toCATLGthedatasetifthestepissuccessfulandtodeletethedatasetifthestepabends.
(NEW,CATLG,DELETE)的意思是什么?
创建一个新的数据集,在作业步正常结束时编目,异常终止时删除。
Q17)(MOD,DELETE);Whatdoesadispositionof(,DELETE)mean?
A17)TheMODwillcausethedatasettobecreated(ifitdoesnotexist),andthenthetwoDELETEswillcausethedatasettobedeletedwhetherthestepabendsornot.Thisdispositionisusedtoclearoutadatasetatthebeginningofajob.
解释一下(MOD,DELETE),(,DELETE)?
MOD一个新的数据集的创建(如果这个数据集不存在),2个DELETEs是无论数据集是否异常终止,都删除。
Q18)WhatistheDDstatementforaoutputfile?
A18)Unlessallocatedearlier,willhavethefollowingparameters:
DISP=(NEW,CATLG,DELETE),UNIT,SPACE&DCB
一个输出文件的DD语句是什么?
如果不存在的话,则必须要有(UNIT,VOLUME)DISP=(NEW,CATLG,DELETE),SPACE&DCB。
Q19)Whatdoyoudoifyoudonotwanttokeepallthespaceallocatedtoadataset?
–GS
A19)SpecifytheparameterRLSE(release)intheSPACEe.g.SPACE=(CYL,(50,50),RLSE)
如何保持所有的分配给一数据集的空间?
指定参数,释放空间,如SPACE=(CYL,(50,50),RLSE)。
Q20)WhatisDISP=(NEW,PASS,DELETE)?
A20)Thisisanewfileandcreateit,ifthestepterminatesnormally,passittothesubsequentstepsandifstepabends,deleteit.ThisdatasetwillnotexistbeyondtheJCL.
解释一下DISP=(NEW,PASS,DELETE)?
创建一个新的数据集,如果作业步正常终止,那么保留传递到同一祖业的后续作业步中使用,如果异常终止,则删除。
Q21)Howdoyoucreateatemporarydataset?
Wherewillyouusethem?
A21)TemporarydatasetscanbecreatedeitherbynotspecifyinganyDSNAMEorbyspecifyingthetemporaryfileindicatorasinDSN=&&TEMP.Weusethemtocarrytheoutputofonesteptoanotherstepinthesamejob.Thedatasetwillnotberetainedoncethejobcompletes.
如何建立一个临时数据集,在哪里会用到他们?
创建了临时数据集时不需要指定的DSNAME,或用指定的临时文件DSN=&&TEMP,在同一个JOB中,我们用它来做临时变量,在作业完成后该数据集删除。
Q22)HowdoyourestartaPROCfromaparticularstep?
–GS
A22)Injobcard,specifyRESTART=PROCSTEP.STEPNAMEwherePROCSTEP=nameoftheJCLstepthatinvokedthePROCandSTEPNAME=nameofthePROCstepwhereyouwantexecutiontostart
在一个特殊作业步中如何restart一个PROC?
在JOB中,指定RESTART=PROCSTEP.STEPNAME,ROCSTEP为JCL作业部的名字,执行作业步时可以调用PROC和STEPNAME。
Q23)Howdoyouskipaparticularstepinaproc/JOB?
–GS
A23)CanuseeitherconditioncodesorusethejclcontrolstatementIF(onlyinESAJCL)\
如何skip一个特殊作业步?
使用任何一个条件代码或JCL控制语句IF。
Q24)APROChasfivesteps.Step3hasaconditioncode.Howcanyouoverride/nullifythisconditioncode?
–GS
A24)ProvidetheoverrideontheEXECstmtintheJCLasfollows:
//STEP001EXECprocname,COND.stepname=value
AllparametersonanEXECstmtintheprocsuchasCOND,PARMhavetobeoverriddenlikethis.
一个PROC有5个作业步,Step3有一个条件代码,如何erride/nullify这个条件代码?
在EXEC语句中用override如下:
//STEP001EXECprocname,COND.stepname=value
象COND,PARM这样的EXEC语句必须这样覆盖
Q25)HowdoyouoverrideaspecificDDNAME/SYSINinPROCfromaJCL?
A25)//DSN=…
如何覆盖一个在PROC中的特殊的DDNAME/SYSIN?
//DSN=…
Q32)WhatdoestheTIMEparametersignify?
WhatdoesTIME=1440mean?
A32)TIMEparametercanbeusedtoovercomeS322abendsforprogramsthatgenuinelyneedmoreCPUtime.TIME=1440meansnoCPUtimelimitistobeappliedtothisstep.
TIME参数的意思是甚么?
TIME=1440表示甚么?
TIME当程序需要更多的CPU时间时用于克服S322abends
TIME=1440表示作业的运行没有时间限制,即24小时。
Q33)WhatisCOND=EVEN?
A33)Meansexecutethisstepevenifanyoftheprevioussteps,terminatedabnormally.
COND=EVEN代表什么意思?
即使先前作业步异常终止,本作业步都要执行。
Q34)WhatisCOND=ONLY?
A34)Meansexecutethissteponlyifanyoftheprevioussteps,terminatedabnormally.
COND=ONLY代表什么意思?
只有先前作业步异常终止,本作业步才执行。
Q36)WhatdoesIEBGENERdo?
A36)UsedtocopyoneQSAMfiletoanother.SourcedatasetshouldbedescribedusingSYSUT1ddname.DestinationdatasetshouldbedescribedusingSYSUT2.IEBGENRcanalsodosomereformattingofdatabysupplyingcontrolcardsviaSYSIN.
IEBGENER的作用?
用于copyQSAM文件,资源数据集用SYSUT1ddname.描述,目标数据集SYSUT2描述。
IEBGENR也能用控制语句SYSIN来做一些数据的重定格式。
Q37)HowdoyousendtheoutputofaCOBOLprogramtoamemberofaPDS?
A37)CodetheDSNasPDS(member)withaDISP=SHR.TheDISPappliestothePDSandnottoaspecificmember.
如何将一个COBOL程序的输出结果写入一个PDS的成员?
在JCL中改下DSN的值。
Q38)Ihave
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- JCL 面试题 试题