FAQs(46 to 60)

46)When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

A) The library with the largest block size should be the first one.

47)How to change default PROCLIB?

A) //ABCD JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)

48)The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP in the JCL is SHR and the program opens the file in EXTEND mode. What happens ?

A) Records will be written to end of file (append) when a WRITE is done in both cases.

49)What are the valid DSORG values ?

A) PS - QSAM, PO - Partitioned, IS - ISAM

50)What are the differences between JES2 & JES3 ?

A) JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes.

51)What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?

A) S0C1-May be due to 1.Missing or misspelled DD name 2.Read/Write to unopened dataset 3.Read to dataset opened

output 4.Write to dataset opened input 5.Called subprogram not found

S0C4-may be due to 1.Missing Select statement(during compile) 2.Bad Subscript/index 3.Protection Exception

4.Missing parameters on called subprogram 5.Read/Write to unopened file 6.Move data from/to unopened file

S0C5-May be due to 1.Bad Subscript/index 2.Closing an unopened dataset 3.Bad exit from a perform 4.Access to I/O

area(FD) before read

S0C7-may be due to 1.Numeric operation on non-numeric data 2.Un-initialize working-storage 3.Coding past the

maximum allowed sub script

S0CB-may be due to 1.Division by Zero

52)What are the kinds of job control statements?

A) The JOB, EXEC and DD statement. 

53)What is the meaning of keyword in JCL?What is its opposite?

A) A keyword in a JCL statement may appear in different places and is recognized by its name, eg. MSGCLASS in the JOB statement. The opposite is positional words, where their meaning is based on their position in the statement, eg. in the DISP keyword the =(NEW,CATLG,DELETE) meanings are based on first, second and third position.

54)Describe the JOB statement, its meaning, syntax and significant keywords?

A) The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc.

55)Describe the EXEC statement, its meaning, syntax and keywords?

A) The EXEC statement identifies the program to be executed via a PGM= program name keyword. Its format is //jobname EXEC PGM= program name. The PARM= keyword can be used to pass external values to the executing program.

56)Describe the DD statement, its meaning, syntax and keywords?

A) The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program. It links the file names within the program code to the file names know to the MVS operating system. The syntax is // ddname DD DSN=dataset name. Other keywords after DSN are DISP, DCB, SPACE, etc.

57)What is a PROC? What is the difference between an instream and a catalogued PROC?

A) PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.

58)What is the difference between a symbolic and an override in executing a PROC?

A) A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it substitutes for the entire statement.

59)What is RESTART? How is it invoked?

A) RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning.

60)What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?

A) GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.