JCL

2026/1/27 6:00:48

解释一下DISP = (NEW,PASS,DELETE)

创建一个新的数据集,如果作业步正常终止,那么保留传递到同一祖业的后续作业步中使用,如果异常终止,则删除。数据集将不再存在

Q21) How do you create a temporary dataset? Where will you use them? A21)

Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.

如何建立一个临时数据集,在那里会用到他们

创建了临时数据集时不需要指定的DSNAME,或用指定的临时文件DSN=&&TEMP,在同一个JOB中,我们用它来????、?、 在作业完成后该数据集删除

Q22) How do you restart a PROC from a particular step? - GS A22)

In job card, specify RESTART=PROCSTEP.STEPNAME where PROCSTEP = name of the JCL step that invoked the PROC and STEPNAME = name of the PROC step where you want execution to start

在一个特殊作业步中如何restart 一个 PROC

在JOB中,指定RESTART=PROCSTEP.STEPNAME ,ROCSTEP为JCL作业部的名字,执行作业步时可以调用PROC 和 STEPNAME

Q23) How do you skip a particular step in a proc/JOB? - GS A23)

Can use either condition codes or use the jcl control statement IF (only in ESA JCL)\\

如何skip 一个特殊作业步skip

使用任何一个条件代码或JCL控制语句IF

Q24) A PROC has five steps. Step 3 has a condition code. How can you override/nullify this

condition code? - GS

A24)

Provide the override on the EXEC stmt in the JCL as follows: //STEP001 EXEC procname, COND.stepname=value

All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.

一个PROC有5个作业步,Step 3有一个条件代码,如何erride/nullify这个条件代码 在EXEC语句中用override如下:

//STEP001 EXEC procname, COND.stepname=value 象COND, PARM这样的EXEC语句必须这样覆盖

Q25) How do you override a specific DDNAME/SYSIN in PROC from a JCL? A25)

// DSN=...

如何覆盖一个在PROC中的特殊的DDNAME/SYSIN // DSN=...

Q26) What is NOTCAT 2 - GS A26)

This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new, catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.

什么时是NOTCAT 2

这是一个MVS的消息标志,它复制一个catalog entry exists,如果已经有了一个数据集dsn = 'xxxx.yyyy',那么当再创建一个新的时就会显示错误,程序的打开和写would go through,以及在系统的作业步的最后会试着吧它放进系统编目中,一个an entry already exists the catlg会报错,并且给出信息。用deleting/uncataloging 第一个数据集去fix 程序,然后去有新的数据集的卷,创建它。

Q27) What is 'S0C7' abend? - GS A27)

Caused by invalid data in a numeric field.

甚么是'S0C7'异常终止 引起一个数字域里的无效数字

Q28) What is a S0C4 error ? - GS A28)

Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.

甚么是S0C4错误

存储违反错误由多种原因决定,例,READING是一个美有打开的文件,??????

Q29) What are SD37, SB37, SE37 abends? A29)

All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified. SE37 - Max. of 16 extents already allocated.

SD37, SB37, SE37 abends是甚么 表示磁盘空间不足 SD37没有指定的从分配

SB37终止卷,并且没有根多的卷被指定 SE37已经分配到最大16 extents

Q30) What is S322 abend ? A30)

Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.

甚么是S322 abend 需要更多的CPU时间

程序已经超过了默认的为该作业分配的CPU时间,陷入一个无限循环..???????

Q31) Why do you want to specify the REGION parameter in a JCL step? - GS A31)

To override the REGION defined at the JOB card level. REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.

说明在JCL作业步中的REGION(见书86页)

Q32) What does the TIME parameter signify ? What does TIME=1440 mean ? A32)

TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.

TIME参数的意思是甚么?TIME=1440 表示甚么 TIME当程序需要更多的CPU时间时用于克服S322 abends TIME=1440表示作业的运行没有时间限制,即24小时。

Q33) What is COND=EVEN ? A33)

Means execute this step even if any of the previous steps, terminated abnormally.

COND=EVEN

即使先前作业步异常终止,本作业步都要执行

Q34) What is COND=ONLY ? A34)

Means execute this step only if any of the previous steps, terminated abnormally.

COND=ONLY

只有先前作业步异常终止,本作业步才执行

Q35) How do you check the syntax of a JCL without running it? A35)

TYPERUN=SCAN on the JOB card or use JSCAN.

如何在一个JCL中检查是否有语法错误 在JOB过程中,TYPERUN=SCAN或JSCAN.

Q36) What does IEBGENER do? A36)

Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be described using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.

IEBGENER的作用 用于copy QSAM文件

资源数据集用SYSUT1 ddname.描述,目标数据集SYSUT2描述??????? IEBGENR也能用控制语句SYSIN来做一些数据的重定格式

Q37) How do you send the output of a COBOL program to a member of a PDS? A37)

Code the DSN as PDS (member) with a DISP = SHR. The DISP applies to the PDS and not to a specific member.

如何给一个PDS的成员输出一个COBOL程序

Q38) I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I

submit it?

A38)

Multiple jobs are submitted (as many jobs as the number of JOB cards).

在一个成员中有几个JOB,如果提交了将会发生甚么 ??????????????????

Q39) I have a COBOL program that Accepts some input data. How do you code the JCL

statement for this?

( How do you code instream data in a JCL? ) A39)

//SYSIN DD* input data input data /*

有一个接受一些输入数据的COBOL程序,如何为它编一个JCL程序(如何在JCL中编一个流数据)

//SYSIN DD* input data input data /*

Q40) Can you code instream data in a PROC ? A40) No.

Q41) How do you overcome this limitation ? A41)

One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.

如何解决这个限制呢

在PROC内编写SYSIN DD DUMMY,然后从JCL用流数据覆盖它

Q42) How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2

program?

A42)

To run a non DB2 program,

//STEP001 EXEC PGM=MYPROG

To run a DB2 program,

//STEP001 EXEC PGM=IKJEFT01 //SYSTSIN DD * DSN SYSTEM(....)

RUN PROGRAM(MYPROG) No.

在PROC中的流数据可以编码吗


JCL.doc 将本文的Word文档下载到电脑
搜索更多关于: JCL 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219