EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

JCL Interview Questions

By Priya PedamkarPriya Pedamkar

Home » Software Development » Software Development Tutorials » Top Interview Question » JCL Interview Questions

JCL Interview Questions

Introduction to JCL Interview Questions and Answers

JCL is actually standing for Job Control Language. JCL is mainly handling all the mainframe-related job, defining one job, controlling the same for ensuring proper logical execution of defining programs, and getting desired output as scheduled by that specific job. JCL is normally designed in such a way so that it may contain multiple steps, and every step holding the business logic to be executed or some specific define task that needs to be complete. JCL normally links all the defined programs and input or output files in the backend job batch environment.

Now, if you are looking for a job related to JCL, you need to prepare for the 2021 JCL Interview Questions. Every interview is indeed different as per the different job profiles. Here, we have prepared the important JCL Interview Questions and Answers, which will help you succeed in your interview.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

This 2021 JCL Interview Questions article will present the 10 most important and frequently asked JCL interview questions. These interview questions are divided into two parts are as follows:

Part 1 – JCL Interview Questions (Basic)

This first part covers basic Interview Questions and Answers.

Q1. Suppose we had 3 DD names in a concatenated approach with multiple datasets; how can we override one another dataset on those specific 3 datasets?

Answer:
By using DD DUMMY. If you need to override 1 dataset to another, then DD DUMMY will easily override any JCL job steps. Please note, those are overridden, not overwritten.

//STEP1.IN1 DD DUMMY
//          DD DSN=OWNDATA.OURMI.IN2,DISP=SHR
//          DD DUMMY

Q2. We can able to maintain multiple version in GDG, suppose if the current version is using to consider as input in the first step (step 1) of any job, output also been created a new version, And the same way if step1 output can be considered as input of next step suppose step2, the output of step2 again going to create one new version, then please explain how are we indicating every GDG require a version for each step?

Answer:
We can easily do the same by using the +1 or +2 operator without any specific logic. Please find below code snippet which defines references of multiple version of GDG:

Popular Course in this category
Sale
All in One Software Development Bundle (600+ Courses, 50+ projects)600+ Online Courses | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (3,144 ratings)
Course Price

View Course

Related Courses
Programming Languages Training (41 Courses, 13+ Projects, 4 Quizzes)C Programming Training (3 Courses, 5 Project)Selenium Automation Testing Training (9 Courses, 4+ Projects, 4 Quizzes)

Stp1 input: (0)
Stp1 output: (+1)
Stp2 input: (+1)
Stp2 output: (+2)

Q3. Is it possible to check an empty file or not in JCL? If yes, then please explain how we can do this?

Answer:
Yes, it is possible to identify one empty file in JCL, but in one condition, that file should be one input of IDCAMS. If one has been used as INPUT in IDCAMS, then when the job is completed, and the input file is actually empty, in that case, code 4 will be return back as output for that specific JCL job. Return code 4 of any kind of JCL job can be considered an empty file choosing as input for the job. Normally, the developer manages the same in a different way; if the return code came as 4, then the job is automatically terminated, not required to process further for the next executable logic. As an empty file is normally not required to process further as it will take minimum space in the mainframe system, it is well aware that mainframe system cost is too high, so handling this kind of error will require expertness for any mainframe or JCL job developer.

Q4. Suppose considering one JCL job has 4 steps, and surprisingly suddenly job has been abended. Now give some commands or explain how we can start step 2 of that specific JCL job?

Answer:
These are the common JCL Interview Questions asked in an interview. Several responsibilities normally need to follow by a JCL tester in the current IT industry.

It needs to be mention RESTART = STP2 in the statement of the job. JCL job should need to be constructed in such a way so that RESTART can be done in step 2, and accordingly, step 3 and 4 will be executed sequentially. The same IF-ELSE statement also needs to be included.

//URMIIF JOB 1, CLASS=4, MSGCLASS=0, NOTIFY = &SYSUID,RESTART=STP2
//*
//STP1   EXEC
//STP2   EXEC
//IF1    IF (STP2.RC = 0 & STP2.RC <> 0) THEN
//STP3   EXEC
//STP4   EXEC
//ENDIF

Q5. Explain in details of available ways to requiring data passing into a COBOL program from any JCL job?

Answer:
There have several ways to pass require data in a COBOL program from a specific JCL job. Below three approaches can communicate it:

  • Files: JCL job can able to send files directly to the COBOL program; the program will be able to read the files and process them based on the logic.
  • PARM Parameter: If JOB accepts some PARM parameter as input, it can easily pass on to any define COBOL program for further process as per the logic defined by the COBOL developer.
  • SYSIN DD statement: SYSIN DD statement can pick up some system define parameter by any JCL job and send the same to a define COBOL program for further execution.

After sending the required data to the Cobol program, every JCL job is waiting to return a response from that program and decide the JOB further process.

Part 2 – JCL Interview Questions (Advanced)

Let us now have a look at the advanced Interview Questions and Answers.

Q6. Is it possible to call the same PROC by using many JOBS? If yes, then give detail explaining how it can be reused?

Answer:
Yes possible. PROC mainly defined some static parts of the job, which can be reused in any JCL job. For example, file name change functionality can be defined inside a PROC and reused by the JCL job.

//IN1 DD DSN = &ID.OURMI.IN1, DISP = SHR  //*PROC version

ID=OWNDATA1 is coded in JOB1, ID = OWNDATA2 is coded in JOB2 and so on

Q7. Is it possible to create one new dataset for JCL just to maintain the same file-like organization, whereas it is available in another existing dataset? If yes, please explain?

Answer:
Possible by using IEBGENER. Existing file pass to SYSUT10; now pass the new file in SYSUT11 and mention DCB=*.SYSUT10.

Q8. Explain in detail of accessing policy to an uncategorized JCL dataset in the mainframe?

Answer:
By using UNIT and VOL serial parameters.

Q9. Again assuming one JCL job have two steps, now we are willing to configure that if some reason step1 abends, then step 2 will automatically run, else JCL job will be terminated? Explain how we can do this?

Answer:
This is the most popular JCL Interview Questions asked in an interview. Some popular test cases in the current IT industry.

Provide some ONLY condition in step 2 it can be possible. The code will be like below:

COND = ONLY in STP2

Q10. Is it possible to perform one automated restart in case of JCL job abends? If yes, then explain how we can do this easily?

Answer:
It is very much possible by using the RD parameter in the JCL job or exec statement. If some restart requires the ABEND code, it needs to be mentioned in the IBM parmlib library as a SCHEDxx member.

Recommended Articles

This has been a guide to the list of JCL Interview Questions and Answers so that the candidate can crackdown on these Interview Questions easily. Here in this post, we have studied top JCL Interview Questions, which are often asked in interviews. You may also look at the following articles to learn more –

  1. ETL Testing Interview Questions
  2. Kotlin Interview Questions
  3. Blockchain Interview Questions
  4. Inheritance Interview Questions

All in One Software Development Bundle (600+ Courses, 50+ projects)

600+ Online Courses

3000+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Top Interview Question Tutorial
  • Top Interview Question
    • Apache PIG Interview Questions
    • Elasticsearch Interview Questions
    • Data Engineer Interview Questions
    • Algorithm Interview Questions
    • OBIEE Interview Questions
    • SSIS Interview Questions
    • Cognos Interview Questions
    • MapReduce Interview Questions
    • NoSQL Interview Questions And Answers
    • Sqoop Interview Questions
    • Mainframe Interview Questions
    • SSRS Interview Questions
    • Data Modeling Interview Questions
    • J2EE Interview Questions And Answers You Should Know
    • Minitab Interview Questions
    • Statistics Interview Questions
    • MS SQL Interview Questions
    • WordPress Interview Questions
    • OS Interview Questions
    • Drupal Interview Questions
    • OOP Interview Questions
    • Mulesoft Interview Questions
    • Typescript Interview Questions
    • Redux Interview Questions
    • Pig Interview Questions
    • ES6 Interview Questions
    • Multithreading Interview Questions
    • Go Interview Questions
    • APEX Interview Questions
    • Teradata Interview Questions
    • Groovy Interview Questions
    • ExtJS Interview Questions
    • Appium Interview Questions
    • SOA Interview Questions
    • ITIL Interview Questions
    • IT Interview Questions
    • WinForms Interview Questions
    • IT Security Interview Questions
    • WCF Interview Questions
    • Apache Interview Questions
    • MicroStrategy Interview Questions
    • Virtualization Interview Questions
    • UI Developer Interview Questions
    • Electrical Engineering Interview Questions
    • RMAN Interview Questions
    • SVN Interview Questions
    • Talend interview questions
    • Inheritance Interview Questions
    • Threading Interview Questions
    • Quality Control Interview Questions
    • Embedded System Interview Questions
    • OpenStack Interview Questions
    • Objective C Interview Questions
    • QA Interview Question
    • PLC Interview Questions
    • SDET Interview Questions
    • IELTS Interview Questions
    • JCL Interview Questions
    • SOAP Interview Questions
    • Front end Developer Interview Questions
    • DB2 Interview Questions
    • SoapUI Interview Questions
    • VSAM Interview Question
    • MVC Interview Questions
    • WPF Interview Questions
    • UI Designer Interview Questions
    • NLP Interview Questions
    • TFS Interview Questions
    • Xamarin Interview Questions
    • Intrusion Prevention System Interview Questions
    • SharePoint Interview Questions
    • Ab initio Interview Questions
    • Digital Electronics Interview Questions
    • SAP ABAP Interview Questions
    • Business Intelligence Interview Questions
    • Active Directory Interview Questions
    • Control System Interview Questions
    • Blue Prism Interview Questions
    • E-Commerce Interview Questions
    • Scenario Interview Questions
    • Linked List Interview Questions
    • Functional Testing Interview Questions
    • MPLS Interview Questions
    • COBOL Interview Questions
    • Binary Tree Interview Questions
    • Selenium Interview Questions
    • Cloud Security Interview Questions
    • DHCP interview questions
    • Spring Batch Interview Questions
    • Perl interview questions
    • ESL interview questions
    • DynamoDB interview questions
    • Automation Anywhere Interview Questions
    • Struts Interview Questions
    • Databricks Interview Questions
    • RxJava Interview Questions
    • Scrum Interview Questions
    • Security Testing Interview Questions
    • XML Interview Questions
    • Entity Framework Interview Questions
    • Terraform Interview Questions
    • LINQ Interview Questions
    • MVVM Interview Questions
    • OSPF Interview Questions
    • Data Architect Interview Questions
    • Data Analyst Technical Interview Questions
    • Server interview questions and answers
    • Webpack Interview Questions
    • GitHub Interview Questions
    • Civil Engineering Questions for Interview
    • OBIEE Interview Questions
    • Electronics Engineering Interview Questions
    • Java concurrency interview questions

Related Courses

Programming Languages Course

C programming Course

Selenium Training Certification

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Special Offer - All in One Software Development Bundle (600+ Courses, 50+ projects) Learn More