Thursday, May 22, 2014

20 TOP JCL interview Questions and Answers pdf

Most frequently Asked IBM JCL interview Questions and Answers for freshers and experienced pdf free download
1. What are the differences between JES2 & JES3 ?
JES3 allocates Data Sets for all the steps before the job is scheduled. In JES2, allocation of Data Sets Required by a step are done only just before the step executes. JOB /EXEC/DD ALL PARAMETERS JOBLIB/STEPLIB PROCEDURES, PARAMETERS PASSING CONDITION VARIABLES ABEND CODES.

2. What are the kinds of job control statements?
The JOB, EXEC and DD statement

3. What is the meaning of keyword in JCL?What is its opposite?
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) meaning are based on first, second and third position.

4. Describe the JOB statement, its meaning, syntax and significant keywords.?
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 .

5. Describe the EXEC statement, its meaning, syntax and keywords.?
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.

6. Describe the DD statement, its meaning, syntax and keywords.?
The DD statement links the external Data Set 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=Data Set name Other keywords after DSN are DISP, DCB, SPACE, etc .

7. What is a PROC?What is the difference between an instream and a catalogued PROC?
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 Data Set.

8. What is the difference between a symbolic and an override in executing a PROC?
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

9. What is RESTART? How is it invoked?
A RESTART is a JOB statement keyword It is used to restart the job at a specified s step rather than at the beginning

10. What is a GDG? How is it referenced?How is it defined? What is a MODELDSCB?
GDG stands for generation data group It is a Data Set with versions that can be referenced absolutely or relatively It is defined by an IDCAMS define generation datagroup execution

11. Explain concatenating Data Sets ?
Data Sets 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 Data Sets.

12. What is the difference between specifying DISP=OLD and DISP=SHR for a Data Set?
A DISP=OLD denotes exclusive control of the Data Set; DISP=SHR means there is no exclusivity .

13. What is MOD and when would you use it?
DISP=MOD is used when the Data Set can be extended, ie, you can add records at the end of an existing Data Set

14. 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?
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

15. How do you designate a comment in JCL?
The comment statement is //* followed by the comments.

16. What is the meaning of the EXEC statement keyword, COND? What is its syntax?
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!).

17. What is the improvement to COND= in the latest version of MVS?
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.

18. What is the purpose of the PARM keyword in the EXEC statement?
The value after the PARM= specifies control information to be passed to the executing program of the job step

19. What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
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 .

20. What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?
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.

No comments: