a job have 5 steps and it will executes a proc which have
5steps in it. now i have to execute step3 only when step2 of
proc executes successfully

Answer Posted / amy

//job1 job a123,'amy',class=a
//proc1 proc
//step01 exec pgm=prog1,
//step02 exec pgm=prog2,
//step03 exec pgm=prog3,(0,eq,step02)
//step04 exec pgm=prog4,(0,eq,step02)
//step05 exec pgm=prog5,(0,eq,step02)
// pend
//step001 exec pgm=proc1
//step002 exec pgm=prog6
//step003 exec pgm=prog7
//step004 exec pgm=prog8
//step005 exec pgm=prog9
//

save it as abc.xyz(member)


now write an another jcl

//job2 job a123,'AMY'
//step1 exec pgm=IEBEDIT
//sysut1 dd dsn=abc.xyz(member)
//sysut2 dd sysout=(b,intrdr)
//sysin dd *
edit start=job1,type=include,stepname=(step001,step003)
/*


WHEN YOU WILL SUBMIT THIS JOB2 THEN ONLY two steps of
proc1(step01 and step02) and
step003(pgm=prog7) will be executed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jcl in mainframe?

708


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

721


Explain how can a jobs execution priority be modified?

751


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1678


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

710






How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5072


how would you create a temporary dataset? And where will you use them?

779


Explain the function of the steplib dd statement?

660


what is DD statement is used in JCL?

690


How can the attributes of one sms dataset be copied to another dataset?

871


What is the use of disp parameter?

659


What do you understand by the terms: joblib and steplib?

633


Must tape dataset definitions include vol=ser specifications?

993


Can an individual step be restricted from using all the jobs allowed cpu time?

1021


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

759