JCL INTERVIEW QUESTIONS
JCL QUESTIONS SET 11. What is primary allocation for a Data Set?
The space allocated when the Data Set is first created
2. What is the difference between primary and secondary allocationsfor a Data Set?
Secondary allocation is done when more space is required than what hasalready been allocated
3. How many extents are possible for a Sequential File ? For a VSAMFile ?
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 Data Set and needs to be allocated, to CATLG the DataSet if the step is successful and to delete the Data Set if the step abends.
5. What does a disposition of (NEW,CATLG,KEEP) mean?
- That this is a new Data Set and needs to be allocated, to CATLG the DataSet if the step is successful and to KEEP but not CATLG the Data Set if thestep abends Thus if the step abends, the Data Set would not be cataloguedand 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 MOD,DELETE
7. What does a disposition of (,DELETE) mean ?
The MOD will cause the Data Set to be created (if it does not exist), and thenthe two DELETE will cause the Data Set to be deleted whether the stepabends or not This disposition is used to clear out a Data Set at the beginningof a job
8. What is the DD statement for a output File?
Unless allocated earlier, will have the following parameters:DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB
9. What do you do if you do not want to keep all the space allocatedto a Data Set?
Leave a Comment
You have to be careful when writing tech interview questions, or you'll end up with the wrong qualifications for your position. For instance, #3 is a file system question, not a JCL question. Questions like #6 depend on what options you have installed in your file system. (Also, "DELETE" is wrong--you aren't required to delete a file when you access it.) You would be tripped up yourself by #25 because it is completely wrong. "TYPERUN" is not a valid JCL parm (it is spelled wrong) and some shops use JCLCHECK rather than JSCAN (and no shop is required to buy any JCL checking software). Why so many questions about specific abend codes? Of course everybody who's been through basic training knows what S0C7 and S0C4 are, but if you don't have access to a message manual at your installation, you've got bigger problems than a programmer can solve. Besides, do you want somebody with a lot of experience causing JCL runtime errors? This list also has a number of *good* questions. I would advise anybody who uses *any* list like this to research the questions and answers before asking them in a technical interview. Taking the easy way by just grabbing random questions without verifying will end up hurting you and your business in the long run.