Monday, 2 February 2015

JCL Interview Questions and Answers (Part2)

11.How do you create a temporary dataset? Where will you use them?
    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.

12.How do you restart a proc from a particular step?
    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

13.How do you skip a particular step in a proc/JOB?
    Can use either condition codes or use the jcl control statement IF (only in ESA JCL)

14.A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
    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.

15.How do you override a specific DDNAME/SYSIN in PROC from a JCL?
    // DSN=...

16.What is NOTCAT ?
    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.

17.What is 'S0C7' abend?
Caused by invalid data in a numeric field.

18.What is a S0C4 error ?
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.

19.What are SD37, SB37, SE37 abends?
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.

20.What is S322 abend ?
    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.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5

No comments:

Post a Comment