JCL经典面试题库

2009年03月16日  |  5:14 下午分类:大型机|Mainframe  |  标签:  |  823 views

Q123) What is the difference between catalogue procedure and In-Stream procedure?
A123) In Stream procedures are set of JCL statements written between JOB and EXEC statements, start with PROC and end with PEND statement. Mainly used to test cataloged procedures. Cataloged procedure is cataloged on the procedure library and is called by specifying the procedure name on the EXEC statement.
Q123) 编目过程与流内过程有什么区别?
A123) 流内过程是作为JOB与EXEC语句之间的JCL语句部分,以PROC开始,以PEND语句结束。编目过程在制定的过程库中编目,以及由EXEC语句开始执行。

(来源:http://www.newcoin.info

Q124) What do you feel makes a good program?
A124) A program that follows a top down approach. It is also one that other programmers or users can follow logically and is easy to read and understand.
Q124) 你觉得该如何编出一个好的程序?
A124) 需要注意程序的上下衔接性。同时也能使其他程序员或者用户遵循其逻辑结果和易于阅读与理解。

Q125) Can we browse or edit the GDG dataset if it is a tape entry?
A125) No, You can’t edit or browse the GDG if it resides on tape.
Q125) 我们可以浏览或编辑磁带输入的GDG 数据集吗?
A125) 不, 您不能编辑或浏览磁带输入的GDG 数据集。

Q126) What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?
A126) Minimum Size : 1 track Maximum size : 1 cylinder
Q126) 任何控制域(VSAM数据集)的最大和最小的尺寸的大小是多少?
A126) 最小尺寸:1磁道 最大尺寸:1柱面

Q127) How to get cursor position from system in CICS environment ?
A127) Get it from EIBCURPOS !
Q127) 在CICS环境中如何得到系统的游标位置?
A127) 从EIBCURPOS得到!

Q128) How many parameters are there to a DISP statement and what are their uses ?
A128) There are three(3) parameters. Parameter 1: current data set disposition(new, shr, old, mod) Parameter 2: normal close action for data set (catlg, keep, delete) Parameter 3:abend action for data set (catlg, keep, delete).
Q128) 在DISP语句中有多少参量以及其用法?
A128) 有3参量。参量1:当前的数据集状态(新建, 共享, 已存在并当前独占, 新建并独占);参量2:数据集正常结束 (编目, 保留, 删除);参量3:数据集异常结束(编目, 保留, 删除)。
(来源:http://www.newcoin.info)

Q129) What is the error code SOC01 indicate?
A129) Operation exception error For e.g. a dataset open error
Q129) 错误代码SOC01表示什么?
A129) 操作以外错误,比如数据集打开错误

Q130) What is a procedure?
A130) A set of precoded JCL that can be modified through the use of parameters or override cards. Note: Procedures can be catalogued or instream.
Q130) 什么是一个过程?
A130) 能通过使用参数和废弃命令来修改的预编码的JCL。注: 过程可能是编目或流内。

Q131) What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
A131) OLD specifies exclusive use of a dataset, SHR allows multiple jobs to concurrently access the dataset Note: When updating a dataset, you would normally use OLD.
Q131) 关于数据集的DISP=OLD和DISP=SHR命令有什么区别?
A131) OLD指令独占一个数据集的使用, SHR命令允许多个作业一起进入数据集。注:当修改一个数据集时,常使用OLD参量。

Q132) What are the three basic types of statements in a jobstream?
A132) JOB(one per jobstream)EXEC(one or more per job)DD(one or more per jobstep)
Q132) 在一个作业流中有哪三种基本语句?
A132) JOB(每个作业流一个);EXEC(每个作业流有一个或多个);DD(每个作业流有一个或多个)。

Q133) What does SYSIN * indicate?
A133) Instream data follows this card and is terminated when followed by a card containing // or /* in columns 1 and 2.
Q133) SYSIN * 表示什么?
A133) 输入的内部流数据跟随这个星号并且星号后面还包含第一二列有// 或/*的内部数据流。

Q134) What are three major types of JCL statements? What are their functions?
A134) JOB – indicates start of jobstream to the operating system and through parms coded on it, certain details about the
job (time, region, message level, job accounting data).
EXEC – indicates the start of execution of a particular job step, be that step a program or a proc.
DD – is a data definition, which is used to describe the attributes of a data set (name, unit, type, space, disposition).
Q134) JCL的三种主要类型语句是什么?他们的作用是什么?
A134) JOB— 表明操作系统中作业流的开始,通过parms来编码,确认作业的细节(时间、存储量、消息模式、作业计数数据)。
EXEC- 表明执行一个特殊作业步骤的开始, 是一段程序或者一个过程。
DD- 数据定义, 用来描述数据集的属性(名字, 单元, 类型, 空间, 位置)。

1. Distinguish between positional & keyword parameters
位置参数与关键字参数的区别
位置参数:与其他参数保持相对位置的参数
关键字参数:有一个关键字和等号后面的可变数据组成
关键字参数必须位于位置参数之后
例如:EXAMPLE JOB 2000,CLASS=A (’2000′为位置参数,’CALSS=A’为关键字参数)

2. How can you omit positional parameters ?
怎样省略位置参数
当省去位置参数时,应以一个逗号指明所在位置,当缺省最后一个位置参数时,可以不写逗号;当没有任何位置参数时,不需写任何内容

3. How do u define the identifier field for a delimiter statement ?
你如何为一个界定符定义标识域
//

4. List some valid operation codes .
列出一些合法的操作码
job exec dd

5. What is the purpose of the MSGLEVEL parameter ?
定义MSGLEVEL参量的目的是什么
用于控制JCL作业输出清单的内容。
MSGLEVEL(A,B): 一般用(1,1)就可以了。
A-0,1,2 (0–仅打印JCL; 1–打印全部; 2–JCL和JES2)
B-0,1 (0–作业异常终止才打印;1–无论如何都打印)

6. What is the function of the following parameters :
I) MSGLEVEL=(0,0)
ii) MSGLEVEL=(2,1)
iii) MSGLEVEL=(1,1)
以下参量的作用是什么:
I) MSGLEVEL=(0,0) 仅打印出作业的JOB语句;只有在作业异常终止时,打印出有关JCL、JES、操作员及SMS的处理信息
ii) MSGLEVEL=(2,1) 打印输入流中的所有控制语句;无论作业是否异常终止,都打印出有关JCL、JES、操作员及SMS的处理信息
iii) MSGLEVEL=(1,1) 打印出作业中包括过程语句在内的所有JCL语句;无论作业是否异常终止,都打印出有关JCL、JES、操作员及SMS的处理信息

7. What is the purpose of the MSGCLASS parameter ?
定义MSGCLASS参量的目的是什么
用于为作业日志(job log)设置输出类别。格式:MSGCLASS=class(class定义作业日志的类别。与输入队列相似,class是一个A-Z或0-9的数字)。指定作业输出存放的队列,如果为Z,则表示输出信息不保留。

8. What are the parameters used with COND ?
哪些参数是使用到COND的
only even

9. List down the different types of comparison operators & their meaning .
列出比较操作符的不同类型及其意思
GT(大于) GE(大于等于) EQ(等于) NE(不等于) LT(小于) LE(小于等于)

10.What is the function of the TYPRUN parameter ?
TYPRUN参量的作用是什么
用于请求特殊处理的作业处理。
typrun:scan 检查完语法就回家;hold 检查完语法然后休息;jclhold 不检查语法就休息;copy 把JCL印到输出中

11.What are the subparameters that can be used with TYPRUN ?
可能需要使用到TYPRUN的有哪些子参数
sacn hold jclhold copy

12.What is the function of the TIME parameter?
12.TIME参数的功能是什么?
用于指定作业步占用处理器的最长时间,并可通过作业输出清单得知该作业步占用处理器的时间。当作业步占用处理器时间超过指定值时,系统将终止该作业。

13. What is the purpose of the EXEC statement ?
EXEC语句的目的是什么
EXEC语句标明作业或过程中的每一作业步的开始,并告知系统如何执行该作业步。包括所有在EXEC语句中调用的过程中的所有作业步在内,一个作业最多可以有255个作业步。

14. What are the additional keyword parameters used on the EXEC statement?
在EXEC语句中用到的附加键参数是什么
PGM PROC

15. What is the difference between the following statements :
I) step#1 exec PGM=accpay
ii) step#1 exec tbalance
以下语句之间有什么不同
I) step#1 exec PGM=accpay 调用系统函数
ii) step#1 exec tbalance 调用外部

16. What is the error in the following JCL statements :
I) //step#three exec pgm=hkbc762
ii) //step#3 exec pgm = hkbc762
iii) //step#3 exec pgr = hkbc672
以下的JCL语句有什么错误:
I) //step#three exec pgm=hkbc762 step#three过长 不应多于8个字符
ii) //step#3 exec pgm = hkbc762
iii) //step#3 exec pgr = hkbc672

17. Name the system library from which modules are retrieved at execution time .
命名系统库从哪个模块检索在执行时间
给出模块被检索在执行时间的系统程序库

18. What is the purpose of the JOBLIB statement ?
JOBLIB语句的目的是什么
通过JOBLIB DD语句用户可以创建一个私有库或为作业指定一个私有库。

19. If JOBLIB & STEPLIB statements are both included in a job , then which statement would overide .
如果在同一个job中同时包括joblib和steplib,那么哪个语句将会被覆盖掉
joblib将会被覆盖掉

20. What is the purpose of the PARM parameter ?
PARM参数的目的是什么?
用于向本作业步执行的程序传递变量信息。必须要有相应的指令接受这些信息。

21. What is the pupose of the DD statement ?
DD语句的目的是什么?
数据定义语句(DD语句)用于定义一个数据集以及该数据所需的输入输出资源。

22. How would u specify the device for a dataset in a DD statement ?
你如何在一个DD语句中为一个数据集定义部件

23. What is the function of the following DD statement //ddname DD *
如下DD语句的作用是什么 //ddname DD *

24. What is the purpose of the SYSOUT Parameter in the DD statement ?
在DD语句中SYSOUT参数的目的是什么
通过SYSOUT参数可以将相应的数据集标志为一个系统输出数据集。同时SYSOUT还可以完成以下的定义:(1)将这个系统输出数据集与一个输出类关联起来;(2)不通过JES而是要求一个外部的书写器程序来处理这个系统输出数据集;(3)指定这个数据集被打印输出的格式;(4)引用JES2的/*OUTPUT语句。

25. What are the two ways of specifying Temporary Data Sets ?
指定临时数据集有哪两种方式

26. What are the advantages of coding the DISP parameter with MOD rather than NEW ?
比起NEW,DISP参数用MOD编码的优势是什么

27. Explain the function of the following Statement : //ddname DD DISP=(NEW,CATLG,DELETE)
解释如下声明: //ddname DD DISP=(NEW,CATLG,DELETE)
在当前作业步中创建一个新的数据集;在作业步正常结束后,系统对数据集进行编目,在系统编目或用户编目中设置相应的入口指针指向该数据集;如果作业步非正常结束,则数据集将不再需要而被删除,所占空间被释放。

28. What is the default value of the third DISP subparameter ?
DISP的第三个子参数是什么
DELETE

29. What is Backward Referencing ?
什么是反向引用

30. What is the purpose of Concatenating Data Sets ?
级联数据集的目的是什么

31. What is the result of a READ operation on a Dummy Data set ?
在一个空的数据集上进行有次READ操作会是什么结果

32. What are the functions of the following ddnames : SYSUDUMP , SYSABEND , SYSMDUMP
DD语句中SYSABEND和SYSMDUMP和SYSUDUMP的功能是什么
在JCL某个step中,使用SYSABEND,SYSMDUMP或者SYSUDUMP DD语句,可以产生一个DUMP。在以下的条件发生的时候,系统生成DUMP:
STEP 异常终止;STEP 异常终止,但是系统recovery procedures 使得STEP正常终止。
DUMP DD 语句有下面三种类型:
SYSABEND DD语句:产生一个DUMP包括user areas和system areas。另一方面,除了包括SYSUDUMP产生的DUMP包含所有的areas外,还包括以下的:(1) LSQA(local system queue area),包括subpools229,230以及249。(2) IOS(input/output system)的控制块(失败的任务)。产生的DUMP是格式化的,可以直接阅读。
SYSMDUMP DD语句:产生一个DUMP包括system areas和应用程序地址空间。这个DUMP是没有格式化的,必须使用IPCS(interactive problem control system)阅读。
SYSUDUMP DD语句:产生一个DUMP只包括user areas。这个DUMP是格式化的,可以直接阅读。
当我们在诊断问题的时候,可能会用到相应的SYSABEND,SYSMDUMP或者SYSUDUMP DD语句,产生相应的dump数据,以便我们能够更好地诊断问题。

33. What are GDGs ?
GDGs是什么
世代数据集组,一组编目的数据集,其组内的每一个数据集称为世代数据集或一代数据集,它们具有相同的名字且在时间序列上是相关的。世代数据集可以是顺序数据集或分区数据集。(IBM S/390 系统管理基础 P50)





点击查看下一页-Pages:

1 2 3

喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

发表您的评论