300+ Jcl FAQs and Answers [Experienced / Freshers]

Jcl Interview Questions with Answers

Question: 1. 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 Symbolic Names In The Jcl. State Whether True Or False?

Answer:

This announcement is actual.

Question: 2. What Is Use Of Space Parameter In Dd Statement?

Answer:

The SPACE parameter specifies the gap required for the dataset in the DASD (Direct Access Storage Disk).
Syntax − SPACE = (spcunits, (pri, sec, dir), RLSE)

VSAM Interview Questions
Question: three. Which Utility Is Used To Update Pds?

Answer:

IEBUPDTE is used to replace PDS.

Question: 4. Which Utility Is Used To Sort A File In Jcl?

Answer:

SORT utility is used to kind a file in a selected order primarily based on the type card.

VSAM Tutorial
Question: 5. A Chkpt Is The Parameter Coded For Multi-quantity 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 End Of Each Volume Of The Input/output Multi-extent Dataset. State Whether True Or False?

Answer:

This statement is genuine.

IBM – VSAM Interview Questions
Question: 6. What Sort Card You Will Use To Copy The Data From One Dataset To Another Dataset?

Answer:

In the SORT step point out the SYSIN & SYSOUT dataset call & in kind card code SORT FIELDS=COPY to duplicate facts from enter record to output record.

Question: 7. In Order To Execute Step2 A Job After A Return Code Of 8 In Step1, What Condition You Will Code In Step2?

Answer:

COND=(12,LT,STEP1), it’ll study the situation as 12 less than 8, that’s false, so this step might be completed.

IBM-CICS Tutorial IBM-CICS Interview Questions
Question: eight. 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?

Answer:

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

Question: nine. Which Statement Is Used To End The In-flow Procedure In A Jcl?

Answer:

PEND declaration is used to give up the in-flow manner.

IBM DB2 Interview Questions
Question: 10. Which Parameter Is Use To Declare The Name Of Dataset In Dd Statement?

Answer:

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

IBM DB2 Tutorial
Question: eleven. Which Utility Is Used To Run A Cobol-db2 Program?

Answer:

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

COBOL Interview Questions
Question: 12. What Disp Parameter We Mention For Creation Of Temporary Dataset So That We Can Use It In Later Steps?

Answer:

DISP = (NEW,PASS). PASS is valid only for normal disposition. This is used when the dataset is to be exceeded and processed by using the following job step in a JCL.

VSAM Interview Questions
Question: thirteen. Which Utility Is Used A Dummy Utility?

Answer:

IEFBR14 isn’t any operation utility. Used to return manipulate to user and terminate. It is typically used to create empty dataset or delete an present dataset.

  [PDF] Writing Formal Letters – CA Foundation BCR Notes

COBOL Tutorial
Question: 14. How You Will The Direct The Data To Spool Using Sysout Option?

Answer:

Code SYSOUT = *, then the records could be directed to spool.

Question: 15. How You Will Define A Temporary Dataset In Jcl?

Answer:

A brief dataset is the one that is created and deleted inside a job and is said as DSN=&&TEMP. Do not mention the DSN parameters with this.

DB2 Using SQL Interview Questions
Question: 16. What Is Use Of Dcb Parameter In Dd Statement?

Answer:

The Data Control Block (DCB) parameter info the physical characteristics of a dataset. This parameter is required for datasets which can be newly created inside the activity step. LRECL is the period of every record held within the dataset. RECFM is the record layout of the dataset.

DB2 Using SQL Tutorial
Question: 17. What Is Use Of Disp Parameter In Dd Statement?

Answer:

The DISP parameter is used to explain the repute of the dataset, disposition on the cease of the job step on everyday and abnormal of completion. DISP isn’t always required in a DD statement handiest while the dataset gets created and deleted within the same process step (just like the brief datasets). Syntax − DISP = (fame, everyday-disposition, extraordinary-disposition)

IBM-JCL&VSAM Interview Questions
Question: 18. What Is Use Of Dsn Parameter In Dd Statement?

Answer:

The DSN parameter refers to the physical dataset name of a newly created or current dataset. The DSN price can be made of sub-names each of one to 8 characters length, separated through periods and of overall period of forty four characters (alphanumeric).

IBM – VSAM Interview Questions
Question: 19. Which Parameter Is Used To Check The Syntax Of A Jcl Without Executing It?

Answer:

TYPRUN = SCAN checks the syntax mistakes of the JCL without executing it.

IMS/DB Tutorial
Question: 20. What Is The Purpose Of Coding Notify Parameter In Job Statement?

Answer:

The machine sends the achievement or failure message (Maximum Condition Code) to the person certain in this parameter. Syntax − NOTIFY = “userid at the time length and the range of assets required via the process, businesses assign distinct job lessons. These can be visualized as individual schedulers used by the OS to obtain the jobs. Placing the roles inside the proper scheduler will aid in smooth execution of the roles. Some corporations have special classes for jobs in check and manufacturing surroundings. Valid values for CLASS parameter are A to Z characters and zero to nine numeric (of length 1). Following is the syntax − CLASS=zero to nine A to Z

Question: 22. How Do You Code A Null Statement?

Answer:

JCL is terminated by way of a null announcement that is non-compulsory. For a null assertion code simplest // starting from column 1. All the strains after this could now not be done.

Question: 23. What Operation Is Performed By Job Statement?

Answer:

Specifies the data required for SPOOLing of the task which includes task identity, priority of execution, consumer-id to be notified upon of entirety of the activity.

  300+ Google Analytics FAQs and Answers [Experienced / Freshers]

Mainframe DB2 Interview Questions
Question: 24. In Job Processing, What Happens In Execution Stage?

Answer:

When the task reaches its highest precedence, it is taken up for execution from the activity queue. The JCL is study from the SPOOL, this system is done and the output is redirected to the corresponding output vacation spot as particular in the JCL.

IBM-CICS Interview Questions
Question: 25. In Job Processing, What Happens In Conversion Stage?

Answer:

The JCL along side the PROC is transformed into an interpreted textual content to be understood via JES and stored right into a dataset, which we name as SPOOL.

Question: 26. What Are The Various Stages Of Job Processing?

Answer:

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

Question: 27. Where & How Do You Code Identifier In Jcl?

Answer:

Identifiers are two slashes (//) starting from column number one. All JCL statements starts offevolved with identifiers besides for two exceptions – For a delimiter statement, /* beginning in col 1 and for a remark assertion , //* beginning at col 1.

IBM DB2 Interview Questions
Question: 28. What Does Mvs Stand For?

Answer:

MVS stands for Multiple Virtual garage which is the operating gadget for the IBM mainframe systems.

Question: 29. What Is A Jcl?

Answer:

JCL stands for Job Control Language which affords the specifications essential to method a job. It is a fixed of manage statements which presents the specifications necessary to system a process. It is a interface among applications & MVS working device.

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

Answer:

NOTIFY = userid of the man or woman (no longer the submitter) may be distinctive within the JOB declaration in order that the consumer receives a notification with the return code upon activity finishing touch. But the process log is gift inside the spool below the submitter’s userid only.

Question: 31. 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 Step2. Step2 Abends Because The Image Copy Dataset Cannot Hold The Volume Of The Table. How Can This Be Rectified?

Answer:

The SPACE parameter of the picture copy dataset may be elevated based on the volume of the table and the task may be restarted from step2.

Question: 32. When Can A Job Time-out Occur? How To Overcome That?

Answer:

A process time-out errors can occur when the program takes greater time than the time restrict for the specified class. This is called a S322 abend. This blunders is encountered whilst there are a few looping errors in the program and it does not attain of completion.
If the information processed inside the program is truly huge and needs more time than the magnificence restriction, then the TIME parameter can be coded as TIME = 1440 to get limitless time until activity of completion.

  300+ Tornados FAQs and Answers [Experienced / Freshers]

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

Answer:

GDG base may be created the use of IDCAMS application. EMPTY uncataloges all of the generations when the LIMIT is reached. SCRATCH bodily deletes the era, when it’s far uncataloged. (LIMIT specifies the most variety of versions that the GDG base can hold).

COBOL Interview Questions
Question: 34. When Does A Dataset Go Uncataloged?

Answer:

When it’s far defined with DISP = (NEW,KEEP) at the time of advent. In case of a GDG, least latest technology is uncataloged if the GDG base had been defined with NOEMPTY parameter whilst the LIMIT is reached. All generations are uncataloged whilst coded with EMPTY.

Question: 35. How To Do Automated Restart When A Job Abends?

Answer:

Using RD parameter in JOB/EXEC declaration. The abend codes for which RESTART need to be completed may be stated in the SCHEDxx member of the IBM machine parmlib library.

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

Answer:

Code COND = ONLY in STEP2.

DB2 Using SQL Interview Questions
Question: 37. What Are The Statements That Are Not Valid To Be Included In An Include Statement?

Answer:

Dummy DD statements, records card specs, PROCs, JOB, PROC statements cannot be coded inside an INCLUDE member. An INLCUDE assertion may be coded inside an INCLUDE member and similarly nesting may be finished up to 15 stages.

Question: 38. How Do You Access An Uncataloged Dataset In A Jcl?

Answer:

By using the UNIT and VOL serial parameters within the dataset DD declaration.

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

Answer:

Use IEBGENER and skip existing document in SYSUT1. Pass new document in SYSUT2 and point out DCB=*.SYSUT1 to get the equal DCB as that of SYSUT1 dataset.

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

Answer:

The various part of the JCL can be particular using symbolic parameters in the JOB and the static components can be precise in the PROC. For instance, if the report call changes for each JOB that makes use of the PROC, then the various part of the report call can be coded in JCL using 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 on.

IBM-JCL&VSAM Interview Questions
Question: 41. What Are The Ways Of Passing Data To A Cobol Program From Jcl?

Answer:

Data can be surpassed to a COBOL software thru files, PARM parameter and SYSIN DD announcement.

Question: 42. How Can You Check If A File Is Empty Using Jcl?

Answer:

When the record is used as enter in IDCAMS, process completes with a warning (return code four) if the document is empty.

IMS/DB Interview Questions

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top