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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the dd keylen parameter?

726


Explain the function of dd name parameter with a 2 part structure; audit.report?

906


Mention the types of job control statements?

691


when does a dataset go uncataloged?

840


how you can direct the data to spool using SYSOUT option?

931






What are the jcl procedures?

649


how to do automated restart when a job abends?

854


Can I share my data with other jobs? How?

672


Give the syntax of job specifying jcl statement.

640


What is the motivation behind coding class parameter in job statement?

692


For what purpose steplib and joblib are used ?

690


Is it possible to left uncode disp?

717


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2174


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

941


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

637