Monday 2 February 2015

50 TOP JCL Interview Questions and Answers pdf (Part1)

1.What is primary allocation for a dataset?
    The space allocated when the dataset is first created.

2.What is the difference between primary and secondary allocations for a dataset?
    Secondary allocation is done when more space is required than what has already been allocated.

3.How many extents are possible for a sequential file ? For a VSAM file?
    16 extents on a volume for a sequential file and 123 for a VSAM file.

4.What does a disposition of (NEW,CATLG,DELETE) mean?
    That this is a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends.

5.What does a disposition of (NEW,CATLG,KEEP) mean?
    That this is a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.

6.How do you access a file that had a disposition of KEEP?
    Need to supply volume serial no. VOL=SER=xxxx.

7.What does a disposition of (MOD,DELETE,DELETE) mean ?
    The MOD will cause the dataset to be created (if it does not exist), and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job.

8.What is the DD statement for a output file?
    Unless allocated earlier, will have the foll parameters: DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .

9.What do you do if you do not want to keep all the space allocated to a dataset?
    Specify the parameter RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)

10.What is DISP=(NEW,PASS,DELETE)?
    This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it. This dataset will not exist beyond the JCL.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5

No comments:

Post a Comment