16)How do you access a file that had a disposition of KEEP?
A) Need to supply Volume Serial Number VOL=SER=xxxx.
17)MOD, DELETE;What does a disposition of (,DELETE) mean ?
A) 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.
18)What is the DD statement for a output file?
A) Unless allocated earlier, will have the following parameters: DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB
19)What do you do if you do not want to keep all the space allocated to a dataset? - GS
A) Specify the parameter RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)
20)What is DISP= (NEW,PASS,DELETE)?
A) 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.
21)How do you create a temporary dataset?Where will you use them?
A) 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.
22)How do you restart a PROC from a particular step?
A) 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
23)How do you skip a particular step in a proc/JOB?
A) Can use either condition codes or use the jcl control statement IF (only in ESA JCL)
24)A PROC has five steps.Step 3 has a condition code.How can you override/nullify this condition code?
A) 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.
25)How do you override a specific DDNAME/SYSIN in PROC from a JCL?
A) //<STEPNAME.DD> DSN=...
26)What is NOTCAT 2
A) 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.
27)What is 'S0C7' abend?
A) Caused by invalid data in a numeric field.
28)What is a S0C4 error ?
A) 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.
29)What are SD37, SB37, SE37 abends?
A) 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.
30)What is S322 abend ?
A) 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.