Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In my job I have 6 steps. Step01,02,03...step06.
after executing step02 i want to skip step03 and want to
execute step04. and once step04 is done then I want to go
back and execute step03. once step03 is completed I want
execute step05, 06 and so on... can any one tell me how do
i do that???

Answers were Sorted based on User's Feedback



In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / anil sana

You can do that using IEBEDIT. Pls read JCL manual for more
details. I am citing an example below.

The member XXXXX in SYSUT1 contains the job and steps to be
executed.

//STEP0001 EXEC
PGM=IEBEDIT
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*
//SYSUT1 DD DSN=ANIL.SANA(XXXXX),DISP=SHR
//SYSUT2 DD SYSOUT=
(*,INTRDR)
//SYSIN DD
*
EDIT START=ANILPROC,TYPE=INCLUDE,STEPNAME=
(STEP2,STEP4,STEP3,STEP5......)
/*

Is This Answer Correct ?    12 Yes 1 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / pradeep

See below the exact code for your requirement: Here TEST001
contains your actual JCL to be executed

//Job Card
//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP01,STEP02,STEP04)
/*
//STEP002 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP03,STEP05,STEP06)
/*

Is This Answer Correct ?    9 Yes 0 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / manohar (techmahindra)

In JCL one key word parametor is there that is DPRTY.It can
be done by using DPRTY(Value1,Value2) in the
job step,
hear Value1 allwawys 15
DPRTY=(15*15)=255
yOU CAN INCRESE Value2 value based on your requirment,You
can execute up to 255 steps in your JOB.


eg.,
//MANOHAR JOB 'TECHMAHINDRA'
//**
//STEP01 EXEC PGM=A ,DPRTY=(15*6)
//STEP02 EXEC PGM=A ,DPRTY=(15*5)
//STEP03 EXEC PGM=A ,DPRTY=(15*3)
//STEP04 EXEC PGM=A ,DPRTY=(15*4)
//STEP05 EXEC PGM=A ,DPRTY=(15*2)
//STEP06 EXEC PGM=A ,DPRTY=(15*1)
//**
//
By doing this according to there dispatching priority
each
step will be executed,
first it will execute step01,02,04,03,05,06

Is This Answer Correct ?    10 Yes 2 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / piyush mani

in this case we can either use
iebedit utility or
dprty
but using eibedit is better option bcoz it wont affect the main jcl

thans...

Is This Answer Correct ?    3 Yes 0 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / nidhi sharma

IT CAN BE DONE BY CONDITION STATEMENT

Is This Answer Correct ?    4 Yes 3 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / neha

we do use the code mentioned by the person who answered
first but we don't include step3 and step4 at one go.in
first step we include step 1 and 4 and then in the next
step we include step3 but the coding we use is the same.
for both steps....

Is This Answer Correct ?    1 Yes 0 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / nagaraj

It can be done by using DPRTY(dispatching priority) in the
job step,
eg., code dprty = (15*12) + 16 in step02
dprty = (15*07) + 06 in step03
dprty = (15*10) + 16 in step04
dprty = (15*05) + 04 in step05
dprty = (15*04) + 03 in step06.
by doing this according to there dispatching priority each
step will be executed,
first it will execute step01,02,04,03,05,06

Is This Answer Correct ?    2 Yes 2 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / abc

we can make function of every step, and call them accordingly

Is This Answer Correct ?    0 Yes 0 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / aaaaa

NO IT CANN'T BE DONE WITH CONDITION BUT I THINK FROM WHAT
ANIL HAS WRITTEN MIGHT WORK.......

CORRECT ME IF I AM WRONG!!!!!!!!!!

Is This Answer Correct ?    0 Yes 2 No

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and w..

Answer / shailendra

chang the step according to requirment

//step1
//step2
//step4
//step3
//step5
....
..
.....

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More JCL Interview Questions

Name the system library from which modules are retrieved at execution

2 Answers  


How can a job send a status message to a tso user at the completion of a job?

1 Answers  


For how long a job can be executed continuously in a mainframe ?

4 Answers  


I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.

1 Answers  


i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

6 Answers   IBM,


what does mvs stand for?

1 Answers   IBM,


how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???

1 Answers  


what is A-MODE and R-MODE?

2 Answers  


Suppose there are 10 steps in a PROC, I want to execute only step5. How do you give the condition in the JCL that calls this PROC?

3 Answers   IBM,


If job is submitted with typerun = hold then how can we submit the same job?

3 Answers   Wipro,


Can you give the sort card to arrange the specific column in the version of GDG.

1 Answers  


is it possible to submitt more than one job in job card in jcl? and if yes than is it necessary to have the jobs same name?

4 Answers   Accenture,


Categories