YouTube Icon

Interview Questions.

Top 42 Jcl Interview Questions - Jul 26, 2022

fluid

Top 42 Jcl Interview Questions

Q1. What Is The Purpose Of Coding Class Parameter In Job Statement?

Based at the time length and the variety of sources required by means of the task, organizations assign one of a kind task training. These may be visualized as person schedulers used by the OS to obtain the jobs. Placing the roles within the proper scheduler will useful resource in smooth execution of the jobs. Some businesses have unique instructions for jobs in take a look at and manufacturing surroundings. Valid values for CLASS parameter are A to Z characters and 0 to 9 numeric (of duration 1). Following is the syntax − CLASS=zero to 9 8 In Step1, What Condition You Will Code In Step2?

COND=(12,LT,STEP1), it will examine the situation as 12 much less than 8, that's false, so this step might be carried out.

Q3. What Is Use Of Dcb Parameter In Dd Statement?

The Data Control Block (DCB) parameter information the physical traits of a dataset. This parameter is needed for datasets which are newly created inside the task step. LRECL is the length of each record held inside the dataset. RECFM is the document layout of the dataset.

Q4. Which Parameter Is Used To Check The Syntax Of A Jcl Without Executing It?

TYPRUN = SCAN exams the syntax errors of the JCL without executing it.

Q5. How Can The Same Proc Be Re-used And Called By Many Jobs?

The varying portion of the JCL can be particular using symbolic parameters within the JOB and the static elements may be targeted within the PROC. For instance, if the report call adjustments for each JOB that uses the PROC, then the varying portion of the report name may be coded in JCL the use of symbolic parameter.

//IN1 DD DSN = &ID.URMI.IN1, DISP = SHR  //*Coded in PROCID=MYDATA1 is coded in JOB1, ID = MYDATA2 is coded in JOB2 and so forth.

Q6. How You Will The Direct The Data To Spool Using Sysout Option?

Code SYSOUT = *, then the information will be directed to spool.

Q7. Which Utility Is Used A Dummy Utility?

IEFBR14 isn't any operation utility. Used to go back manage to consumer and terminate. It is commonly used to create empty dataset or delete an existing dataset.

Q8. How Can You Check If A File Is Empty Using Jcl?

When the file is used as enter in IDCAMS, task completes with a warning (return code 4) if the record is empty.

Q9. How Can A Gdg Base Be Created In A Jcl. What Is The Difference Between Empty And Scratch Parameter While Defining/changing Gdg Base?

GDG base may be created the usage of IDCAMS utility. EMPTY uncataloges all of the generations while the LIMIT is reached. SCRATCH bodily deletes the generation, while it's miles uncataloged. (LIMIT specifies the maximum range of variations that the GDG base can preserve).

Q10. What Is Use Of Disp Parameter In Dd Statement?

The DISP parameter is used to describe the reputation of the dataset, disposition at the end of the activity step on regular and odd final touch. DISP isn't always required in a DD declaration handiest when the dataset receives created and deleted inside the identical activity step (like the transient datasets). Syntax − DISP = (status, everyday-disposition, peculiar-disposition)

Q11. How To Do Automated Restart When A Job Abends?

Using RD parameter in JOB/EXEC declaration. The abend codes for which RESTART need to be achieved can be cited in the SCHEDxx member of the IBM system parmlib library.

Q12. In Job Processing, What Happens In Conversion Stage?

The JCL at the side of the PROC is transformed into an interpreted text to be understood through JES and saved into a dataset, which we call as SPOOL.

Q13. What Is Use Of Space Parameter In Dd Statement?

The SPACE parameter specifies the distance required for the dataset within the DASD (Direct Access Storage Disk).

Syntax − SPACE = (spcunits, (pri, sec, dir), RLSE)

Q14. What Are The Various Stages Of Job Processing?

Input −> Conversion −> Execution −> Output −> Hard replica −> Purge

Q15. What Are The Ways Of Passing Data To A Cobol Program From Jcl?

Data may be passed to a COBOL software via files, PARM parameter and SYSIN DD statement.

Q16. What Disp Parameter We Mention For Creation Of Temporary Dataset So That We Can Use It In Later Steps?

DISP = (NEW,PASS). PASS is valid only for normal disposition. This is used when the dataset is to be handed and processed through the next process step in a JCL.

Q17. What Is Use Of Dsn Parameter In Dd Statement?

The DSN parameter refers back to the physical dataset name of a newly created or current dataset. The DSN cost can be made up of sub-names each of 1 to 8 characters duration, separated by means of durations and of total period of 44 characters (alphanumeric).

Q18. What Operation Is Performed By Job Statement?

Specifies the records required for SPOOLing of the job along with activity identification, priority of execution, user-identity to be notified upon of entirety of the process.

Q19. In Job Processing, What Happens In Execution Stage?

When the process reaches its maximum priority, it's far taken up for execution from the activity queue. The JCL is read from the SPOOL, this system is performed and the output is redirected to the corresponding output vacation spot as specified in the JCL.

Q20. How You Will Define A Temporary Dataset In Jcl?

A transient dataset is the only that is created and deleted within a job and is said as DSN=&&TEMP. Do now not mention the DSN parameters with this.

Q21. A Chkpt Is The Parameter Coded For Multi-extent Qsam Datasets In A Dd Statement. When A Chkpt Is Coded As Chkpt=eov, A Checkpoint Is Written To The Dataset Specified In The Sysckeov Statement At The E

This assertion is proper.

Q22. A Jcl Has 2 Steps. How To Code The Jcl Such That If Step1 Abends, Then Step2 Runs. Else, Job Terminates With Step1?

Code COND = ONLY in STEP2.

Q23. How Do You Access An Uncataloged Dataset In A Jcl?

By the use of the UNIT and VOL serial parameters within the dataset DD assertion.

Q24. Which Utility Is Used To Run A Cobol-db2 Program?

IKJEFT01 software is used to run a COBOL-DB2 software.

Q25. In A Jcl, A Large Volume Dataset Is Loaded To A Table Using Bmcload In Step1 And An Image Copy Of The Loaded Table Is Taken Using Bmccopy In Step

The SPACE parameter of the picture copy dataset can be multiplied based totally at the extent of the desk and the task may be restarted from step2.

Q26. What Is A Jcl?

JCL stands for Job Control Language which gives the specs important to system a activity. It is a set of control statements which presents the specs important to technique a job. It is a interface among applications & MVS running machine.

Q27. A Set Statement Is Used To Define Commonly Used Symbolic Across Job Steps Or Procedures. It Initializes The Previous Values In The Symbolic Names. It Has To Be Defined Before The First Use Of The Symb

This statement is true.

Q28. Which Utility Is Used To Sort A File In Jcl?

SORT utility is used to type a file in a particular order based on the type card.

Q29. What Does Mvs Stand For?

MVS stands for Multiple Virtual storage that is the working device for the IBM mainframe systems.

Q30. When Does A Dataset Go Uncataloged?

When it's miles defined with DISP = (NEW,KEEP) on the time of advent. In case of a GDG, least current generation is uncataloged if the GDG base were defined with NOEMPTY parameter while the LIMIT is reached. All generations are uncataloged whilst coded with EMPTY.

Q31. If The Submitter Of A Job Wants To Inform Another User About The Job Completion, How Can It Be Done?

NOTIFY = userid of the character (not the submitter) can be particular within the JOB statement in order that the consumer gets a notification with the go back code upon activity completion. But the job log is present within the spool below the submitter's userid only.

Q32. Where & How Do You Code Identifier In Jcl?

Identifiers are two slashes (//) starting from column wide variety @All JCL statements begins with identifiers besides for 2 exceptions - For a delimiter declaration, /* beginning in col 1 and for a remark statement , //* starting at col 1.

Q33. What Sort Card You Will Use To Copy The Data From One Dataset To Another Dataset?

In the SORT step mention the SYSIN & SYSOUT dataset call & in sort card code SORT FIELDS=COPY to replicate data from input record to output file.

Q34. What Is The Purpose Of Coding Notify Parameter In Job Statement?

The system sends the success or failure message (Maximum Condition Code) to the consumer detailed in this &SYSUID"

Q35. Which Statement Is Used To End The In-circulation Procedure In A Jcl?

PEND assertion is used to end the in-movement procedure.

Q36. If We Want To Use A Gdg Which Is Already Created By Some Job, Then How To Use The Reference Of The Last Generation In A Jcl?

To refer the contemporary generation of a GDG, we use the reference as (+zero).

Q37. How Do You Create A Dataset In A Jcl With The Same File Organisation As That Of Another Existing Dataset?

Use IEBGENER and skip present document in SYSUT@Pass new record in SYSUT2 and mention DCB=*.SYSUT1 to get the identical DCB as that of SYSUT1 dataset.

Q38. What Are The Statements That Are Not Valid To Be Included In An Include Statement?

Dummy DD statements, records card specifications, PROCs, JOB, PROC statements can not be coded within an INCLUDE member. An INLCUDE statement may be coded within an INCLUDE member and similarly nesting may be achieved up to 15 degrees.

Q39. When Can A Job Time-out Occur? How To Overcome That?

A job time-out blunders can arise whilst this system takes extra time than the time limit for the desired class. This is known as a S322 abend. This errors is encountered whilst there are a few looping errors inside the application and it does now not reach final touch.

If the records processed within the application is actually massive and needs greater time than the magnificence limit, then the TIME parameter can be coded as TIME = 1440 to get limitless time till job final touch.

Q40. Which Parameter Is Use To Declare The Name Of Dataset In Dd Statement?

DSN(Dataset Name) is used to claim the name of dataset in a DD statement.

Q41. Which Utility Is Used To Update Pds?

IEBUPDTE is used to update PDS.

Q42. How Do You Code A Null Statement?

JCL is terminated by means of a null statement that's optional. For a null declaration code best // beginning from column @All the strains after this can no longer be performed.




CFG