FAQs(61 to 75)

61)Explain concatenating datasets?

A) Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets.

62)What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

A) DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity.

63)What is MOD and when would you use it?

A) DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset. 

64)What are the keywords associated with DCB?How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie.

where does the system look for it first?

A) The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG. The DCB information can be supplied in the DD statement. The system looks for DCB information in the program code first.

65)How do you designate a comment in JCL?

A) The comment statement is //* followed by the comments.

66)What is the meaning of the EXEC statement keyword, COND?What is its syntax?

A) COND specifies the conditions for executing the subsequent job step. The value after the COND= is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed. (If this answer confuses you, welcome to the club - memorize it and don't ask questions!)

67)What is the improvement to COND= in the latest version of MVS?

A) MVS now allows for an IF bracketed by an END IF around any job step to replace the COND= syntax. Again, if the IF statement is true, the step is bypassed.

68)What is the purpose of the PARM keyword in the EXEC statement?

A) The value after the PARM= specifies control information to be passed to the executing program of the job step.

69)What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

A) REGION specifies the maximum CPU memory allocated for a particular job or job step. If REGION is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.

70)What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?

A) TIME specifies the maximum CPU time allocated for a particular job or job step. If TIME is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.

71)What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?

A) Data definition name is the eight character designation after the // of the DD statement. It matches the internal name specified in the steps executing program. In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system (MVS) name for the file.

72)How is the keyword DUMMY used in JCL?

A) For an output file DUMMY specifies that the output is to be discarded. For input it specifies that the file is empty.

73)What does the keyword DCB mean and what are some of the keywords associated with it?

A) DCB stands for data control block; it is a keyword for the DD statement used to describe datasets. Keywords associated with it are BLKSIZE, DEN, LRECL and RECFM.

74)What is the difference between BLKSIZE and LRECL?

A) LRECL is the logical record length , where as BLKSIZE is multiples of LRECL

75)Can you execute a PROC from another PROC?

A) I did not know the answer and my interviewer said NO. Later I tried and executed PROC from a PROC, three levels deep. Manuals do not state any limit on PROC calling PROC, or nesting.