GeekInterview.com
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: Vinay on: Aug 6th, 2013

First use a variable as a symbollic parameter. Use this parameter in if Condition. E.g "jcl //Job Card // SET A= 1 // IF &A NE 1 THEN //STEP1 EXEC PGM=ABC // ELSE //STEP2 EXEC...

Answered by: Aloke Deb on: Jul 25th, 2011

Override the first step with the dataset name and parameters of the second step and then use the "//" after the step.

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: Niraj Kumar on: Jul 11th, 2013

If the order of the step is STEP100,STEP99....then we will use the Cond=(0,EQ) in the job card......

But if the order is Step1,Step2.....Step100....then we will use the restart parameter as Restart=Step100.

Answered by: MAdav on: Jul 2nd, 2013

RESTART=PROCNAME.STEPNAME,COND=(0,LE)

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: 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).

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.

Jes

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..

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

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

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.

Answered by: Gautam kumar on: Nov 10th, 2011

Positional Parameters are:- a).Sequence predetermined b) Parameters separated by commas c) Omitted parameters must be indicated by two consecutive commas. d) Installation dependent EX: //JOBNAME J...

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

Rtm

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.
ex: GTO8838.YOGI.JCL(MEMBER1)

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...

What is abend s322?

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

Answered by: Muthuraj on: Jul 24th, 2012

CPU time is not enough...

Answered by: Sodadasi on: Dec 15th, 2006

We get S322 abend when the program takes more execution time than CPU time .

We can avoid this kind of sistuation by using the TIME parameter.

Thanks 

Sodadasi

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.



thanks,
Sivakumar

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: 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.

Thanks,
Tarun

Answered by: Ashish Jain on: Jun 4th, 2012

JCL to find if a dataset is empty In your batch job, if there is a need to check for empty dataset, you can do it using IDCAMS. "cobol //*----------------------------------------...

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

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

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.