Series: Subject: Topic:

JCL Interview Questions

Showing Questions 1 - 20 of 148 Questions
First | Prev | | Next | Last Page
Sort by: 

Conditionally execution of step

Asked By: rpg0247 | Asked On: Jun 29th, 2011

I have 10 steps in my job, how can I execute second step without executing first step, without using restart and commenting first step?

Answered by: praneeth on: Sep 13th, 2014

//SAMIEBED JOB (Information), ,CLASS=A, // MSGCLASS=T,NOTIFY=&SYSUID //*=========================================================== //* EXAMPLE F...

Answered by: srinivas polepalli on: Sep 2nd, 2014

Hi Rishu,
Can you please explain in details and please given the complete JCl and explain clearly about the utility.

Thanks in advance

There are 100 steps in a job card.If we want to execute 100th step,what to do? And but remaining 99 steps should not execute

Asked By: sireesha | Asked On: Feb 28th, 2006

Answered by: Srinivas Polepalli on: Sep 2nd, 2014

Its verify simple dont make it too complicate.
//Jobname job class=a,msgclass=a,msglevel(1,1),RESTART = STEP100.

Here in the above jobcard we have given as restart - step100 which will directly execute only the step100.

Answered by: lenin on: Aug 20th, 2014

you can use the below code to execute only the step100 "c //step1 exec pgm=IEBEDIT //sysut1 dd dsn=inputjcl(jcl1),disp=shr //sysut2 dd sysout=(*,intrdr) //sysin dd * Edit type=...

Jcl to read control card data & change the course of action

Asked By: subratachrec | Asked On: May 19th, 2011

Hi,i need some suggestion on below query. Requirement details are mentioned below.Code one jcl with 4 steps (step01, step02, step03, step04). Now step01 will read one control card data and as per the contents of that control card data next step execution will be decided.Control card will have EIther...

Answered by: Rajesh on: Aug 1st, 2014

I will suggest write a cobol program in step 1 to read the SYSIN value and based on the value set Return code value. For example Value Return code set 01 01 02 02 03 03 04 0...

Answered by: davindersingh29 on: May 17th, 2013

One of the approaches I can think of is instead create 3 procs and call the proc depending on the value in control card (populate proc value name from control card).

What is abend s322?

Asked By: sudhakar | Asked On: May 10th, 2006

Answered by: Rishu on: Jul 28th, 2014

Job is going in loop. One way to check this, please go to IOF and see if time is increasing and IO operation is fixed. If it is so, job is definitely in loop.

Answered by: Muthuraj on: Jul 24th, 2012

CPU time is not enough...

Verify whether a dataset is empty.

Asked By: mohammadanis.jamadar | Asked On: Jun 2nd, 2012

How do you verify whether a dataset is empty using a jcl?

Answered by: Rishu on: Jul 28th, 2014

There are three ways to check if file is empty or not.
1:- Through IDCAMS, it is already explained above.
2:- Through ICETOOL, it is also explained above.
3:- Through SORT::
When file is null then only return code is set to null.

Answered by: Tarun on: Jun 6th, 2012

Use IDCAMS to print the records present in dataset.
If present, the job will end with MAXCC 0000 otherwise MAXCC 0004 i.e. empty file.


What is positional parameter and keyword parameter and what is the difference between them?

Asked By: saranya | Asked On: Oct 31st, 2007

Answered by: aravindhan.devarajan on: Jun 3rd, 2014

What will will happen if the positional parameter is not in order say for example p2,p1 like that? What will be the output? please let me know the result ASAP

Answered by: Gunesh Asatkar on: Feb 13th, 2013

Position parameter has specific order in a program ,if you want to skip particular parameter then you must type comma for that.It always follow JCL job statement.
keyword parameter is unlike positional parameter it can be codec any order.

Jcl condition

Asked By: mannurusrinivasulareddy | Asked On: Aug 31st, 2012

Hi friends, question am going to ask is very simple but suggest me your way of thinking am having 5 steps, I want to keep cond(condition code) for 4th step, in which the 4th step run only all the above three steps must get abend. If any one of the first 3 steps run successful the step-4 must by-pass. if...

Answered by: kannan on: Apr 7th, 2013

Place Cond=(0,EQ,step1),(0,EQ,step2),(0,EQ,step3) in the the 4th step

Answered by: Gunesh on: Feb 21st, 2013

The best way for this problem is give cond=only.


Asked By: medamahendra | Asked On: Jun 19th, 2008

What is jes?Explain in detail about jes?What is the difference between jes2 and jes3?

Answered by: santhosh s kumar on: Feb 17th, 2013

JES2 in this it will release the resource after completion every step execution that resource can be used by any other user.

JES3 it will release the resource only after the completion of all steps execution no other program can access that resource util the completion of exec.

Answered by: monika samal on: May 1st, 2012

JES2 processing is considered to be independently controlled.
JES3 processing is considered to be centrally controlled..

Jcl parm parameter

Asked By: rpg0247 | Asked On: Jun 29th, 2011

I am passing data from jcl using parm to cobol-db2 program, where can u retrieve the passing data in cobol-db2 program and where it stored?

Answered by: Gunesh Asatkar on: Feb 13th, 2013

The parm parameter is used to passed data from jcl to cobol program.
The max 100 character we can sent by parm parameter including special character.
And value get by code s9(4)comp var in linkage section

Answered by: rasheeed17 on: Jan 19th, 2012

Whether it simple Cobol program or an COBOL-DB2 program. passing PARM value & reading it with in program is same for both. - We have to define an variable for PARM in linkage section - LINKAGE SECTI...

What are the different control cards available in the iehprogm utility?

Asked By: Gemcyn Suraj | Asked On: Dec 6th, 2011

Answered by: Atul chhaparia on: Oct 8th, 2012

SCRATCH Scratches a data set or a member from a DASD volume. RENAME Changes the name or alias of a data set or member residing on a DASD volume. CATLG Generates an entry in the index of a catalog. ...

Explain the probable cause of an sx13 and sx37 abend.

Asked By: kckinney | Asked On: May 24th, 2007


Answered by: sanjeevamma Kasindula on: Sep 26th, 2012

S13 comes, when the control card specified in SORT CARD is not available.

Answered by: saisatish on: Jun 24th, 2012

S013 will come the member u r tying to acess was not available in the pds

What does iefbr14 utility is used for?

Asked By: pradeepbhatt | Asked On: May 29th, 2006

Answered by: Jawahar on: Sep 13th, 2012

It is a data utility which is used to create new or empty dataset.

Answered by: KRISHNA on: Mar 9th, 2012

It is used for creating as well as deleting the datasets, it should be the first step in the jcl to delete the duplicate datasets which were created by the last job run and which was failed due to some abend..

Can we create pds member by using isPF 3.2 potion?

Asked By: ujwala | Asked On: Oct 18th, 2007

Answered by: pavani on: Aug 13th, 2012

E pdsname(membername)

Answered by: Yogi Rajput on: Jul 26th, 2012

No,we cant create PDS member by using 3.2 option.

if you want to create member then you can write member name in front of PDS file.

Jcl sort utility

Asked By: KRISHNA PRIYA | Asked On: Oct 10th, 2007

Can we copy the data of two input files to two output files using sort utility with the data as 'sort fields=copy' in the same step?

Answered by: Sandeep Pal on: Aug 2nd, 2012

We can sort the two input file into two output file. "jcl //TDPSNPPJ JOB (9927),SANDEEP PAL,CLASS=D,NOTIFY= // MSGLEVEL=(1,1),MSGCLASS=U,TIME=(0,1) //STEP1 EXEC P...

Answered by: Aditya Mehta on: Jun 27th, 2012

We can copy two input files to two output files in JCL using ICETOOL. //JOBNAM1 JOB (123),XY,NOTIFY=&SYSUID,CLASS=X,MSGCLASS=X //* //STEP01 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG D...

Difference between sysout and sysprint

Asked By: abhishek_98840 | Asked On: Jan 2nd, 2008

Answered by: prabhu on: Jun 16th, 2012

In that area you have specified destination,it may printer or system spool?

Thanks in Advanced..

Answered by: siva on: Dec 2nd, 2011

SYSPRINT: Default output dataset for Printable output.

SYSOUT: Default output dataset for System messages.


What is the difference between class and msgclass parameters in jcl?

Asked By: parveen.rana | Asked On: Apr 20th, 2012

Answered by: gandikotasiva on: Apr 27th, 2012

CLASS parameter specifies weather it is a long or short running job,,, it has a range of A-Z, 0-9 A-------1MIN B-------5MIN .. MSGCLASS specifies the output device to which the messages are sent it ca...

PS and pds

Asked By: Suneel Reddy | Asked On: Oct 24th, 2007

What is the difference between PS and pds ? If a PS file is almost equal to member of a pds. Then what is the neccerasy to use a PS file.?

Answered by: srikanth.doki on: Feb 18th, 2012

The main difference between PS and PDS is were we can store data in a single file in PS and where as in PDS we can store data in multiple files which we also called as members. Yes PS file is almost e...

Answered by: rasheeed17 on: Jan 19th, 2012

PS: PS is also called as FLAT file ,/ Sequential file, it is something similar to our notepad file in our windows environment PS is used to store data , that is almost all the input/output file are P...

How to execute a four steps in a reverse order ?

Asked By: satish | Asked On: Oct 20th, 2007

Answered by: funfull9 on: Jan 25th, 2012

By using eibedit utility we can do it.

Answered by: Phani Nagendra on: Aug 19th, 2011

You can do it with IEBEDIT utility only. I would believe that DPRTY in the STEP will not serve this purpose. DPRTY coded on the step level is just ignored. DPRTY is a very old JCL keyword that wa...

Changes in cobol-db2 to run jcl

Asked By: vardhan.frd | Asked On: Dec 22nd, 2011

What are the changes to be done in jcl for cobol-db2 program to execute?

Answered by: rasheeed17 on: Jan 19th, 2012

To run an DB2 program,. 1) in Job card changes (to specify which db2 environment to be connected) --> Add SCHENV=DB2 keyword, DB21-> db2 env , your db2 admin/ PM will provide this {geshibot langu...

Answered by: davindersingh29 on: Jan 17th, 2012

You have to write a JCL to run a cobol-db2 program. Can you please give your JCL if you need any changes.

Jcl and jes

Asked By: Hamsa | Asked On: Sep 21st, 2011

1.What is the difference between jcl and jes.? 2.What is the difference between vsam and db2?

Answered by: rasheeed17 on: Jan 19th, 2012

JCL: JCL is a language, We write JOBs in JCL laguage that is understood by Mainframe and job is executed, space allocations & other resource allocation is done according to the keywords specified by ...

Answered by: mohammadanis.jamadar on: Oct 4th, 2011

JCL: is Job control Language.Through jcl we can decide what job has to be run what programs needs to be run.
JES: Job entry System : This will take care of the execution of the job . when a job is submitted it will allocate space for execution and will help in execution

First | Prev | | Next | Last Page





twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.